@@ -417,7 +417,7 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
417
417
418
418
let msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
419
419
parse_msrv ( s, None , None ) . or_else ( || {
420
- sess. err ( & format ! (
420
+ sess. err ( format ! (
421
421
"error reading Clippy's configuration file. `{}` is not a valid Rust version" ,
422
422
s
423
423
) ) ;
@@ -435,7 +435,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
435
435
. and_then ( |v| parse_msrv ( & v, None , None ) ) ;
436
436
let clippy_msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
437
437
parse_msrv ( s, None , None ) . or_else ( || {
438
- sess. err ( & format ! (
438
+ sess. err ( format ! (
439
439
"error reading Clippy's configuration file. `{}` is not a valid Rust version" ,
440
440
s
441
441
) ) ;
@@ -447,7 +447,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
447
447
if let Some ( clippy_msrv) = clippy_msrv {
448
448
// if both files have an msrv, let's compare them and emit a warning if they differ
449
449
if clippy_msrv != cargo_msrv {
450
- sess. warn ( & format ! (
450
+ sess. warn ( format ! (
451
451
"the MSRV in `clippy.toml` and `Cargo.toml` differ; using `{}` from `clippy.toml`" ,
452
452
clippy_msrv
453
453
) ) ;
@@ -468,7 +468,7 @@ pub fn read_conf(sess: &Session) -> Conf {
468
468
Ok ( Some ( path) ) => path,
469
469
Ok ( None ) => return Conf :: default ( ) ,
470
470
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) )
472
472
. emit ( ) ;
473
473
return Conf :: default ( ) ;
474
474
} ,
0 commit comments