@@ -417,7 +417,7 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
417417
418418 let msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
419419 parse_msrv ( s, None , None ) . or_else ( || {
420- sess. err ( & format ! (
420+ sess. err ( format ! (
421421 "error reading Clippy's configuration file. `{}` is not a valid Rust version" ,
422422 s
423423 ) ) ;
@@ -435,7 +435,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
435435 . and_then ( |v| parse_msrv ( & v, None , None ) ) ;
436436 let clippy_msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
437437 parse_msrv ( s, None , None ) . or_else ( || {
438- sess. err ( & format ! (
438+ sess. err ( format ! (
439439 "error reading Clippy's configuration file. `{}` is not a valid Rust version" ,
440440 s
441441 ) ) ;
@@ -447,7 +447,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
447447 if let Some ( clippy_msrv) = clippy_msrv {
448448 // if both files have an msrv, let's compare them and emit a warning if they differ
449449 if clippy_msrv != cargo_msrv {
450- sess. warn ( & format ! (
450+ sess. warn ( format ! (
451451 "the MSRV in `clippy.toml` and `Cargo.toml` differ; using `{}` from `clippy.toml`" ,
452452 clippy_msrv
453453 ) ) ;
@@ -468,7 +468,7 @@ pub fn read_conf(sess: &Session) -> Conf {
468468 Ok ( Some ( path) ) => path,
469469 Ok ( None ) => return Conf :: default ( ) ,
470470 Err ( error) => {
471- sess. struct_err ( & format ! ( "error finding Clippy's configuration file: {}" , error) )
471+ sess. struct_err ( format ! ( "error finding Clippy's configuration file: {}" , error) )
472472 . emit ( ) ;
473473 return Conf :: default ( ) ;
474474 } ,
0 commit comments