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