@@ -416,7 +416,7 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
416
416
417
417
let msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
418
418
parse_msrv ( s, None , None ) . or_else ( || {
419
- sess. err ( & format ! (
419
+ sess. err ( format ! (
420
420
"error reading Clippy's configuration file. `{s}` is not a valid Rust version"
421
421
) ) ;
422
422
None
@@ -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. `{s}` is not a valid Rust version"
437
437
) ) ;
438
438
None
@@ -443,7 +443,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
443
443
if let Some ( clippy_msrv) = clippy_msrv {
444
444
// if both files have an msrv, let's compare them and emit a warning if they differ
445
445
if clippy_msrv != cargo_msrv {
446
- sess. warn ( & format ! (
446
+ sess. warn ( format ! (
447
447
"the MSRV in `clippy.toml` and `Cargo.toml` differ; using `{clippy_msrv}` from `clippy.toml`"
448
448
) ) ;
449
449
}
@@ -472,7 +472,7 @@ pub fn read_conf(sess: &Session) -> Conf {
472
472
let TryConf { conf, errors, warnings } = utils:: conf:: read ( & file_name) ;
473
473
// all conf errors are non-fatal, we just use the default conf in case of error
474
474
for error in errors {
475
- sess. err ( & format ! (
475
+ sess. err ( format ! (
476
476
"error reading Clippy's configuration file `{}`: {}" ,
477
477
file_name. display( ) ,
478
478
format_error( error)
0 commit comments