@@ -414,7 +414,7 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
414414
415415 let msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
416416 parse_msrv ( s, None , None ) . or_else ( || {
417- sess. err ( & format ! (
417+ sess. err ( format ! (
418418 "error reading Clippy's configuration file. `{}` is not a valid Rust version" ,
419419 s
420420 ) ) ;
@@ -432,7 +432,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
432432 . and_then ( |v| parse_msrv ( & v, None , None ) ) ;
433433 let clippy_msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
434434 parse_msrv ( s, None , None ) . or_else ( || {
435- sess. err ( & format ! (
435+ sess. err ( format ! (
436436 "error reading Clippy's configuration file. `{}` is not a valid Rust version" ,
437437 s
438438 ) ) ;
@@ -444,7 +444,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
444444 if let Some ( clippy_msrv) = clippy_msrv {
445445 // if both files have an msrv, let's compare them and emit a warning if they differ
446446 if clippy_msrv != cargo_msrv {
447- sess. warn ( & format ! (
447+ sess. warn ( format ! (
448448 "the MSRV in `clippy.toml` and `Cargo.toml` differ; using `{}` from `clippy.toml`" ,
449449 clippy_msrv
450450 ) ) ;
@@ -465,7 +465,7 @@ pub fn read_conf(sess: &Session) -> Conf {
465465 Ok ( Some ( path) ) => path,
466466 Ok ( None ) => return Conf :: default ( ) ,
467467 Err ( error) => {
468- sess. struct_err ( & format ! ( "error finding Clippy's configuration file: {}" , error) )
468+ sess. struct_err ( format ! ( "error finding Clippy's configuration file: {}" , error) )
469469 . emit ( ) ;
470470 return Conf :: default ( ) ;
471471 } ,
0 commit comments