@@ -416,7 +416,7 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
416416
417417 let msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
418418 parse_msrv ( s, None , None ) . or_else ( || {
419- sess. err ( & format ! (
419+ sess. err ( format ! (
420420 "error reading Clippy's configuration file. `{s}` is not a valid Rust version"
421421 ) ) ;
422422 None
@@ -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. `{s}` is not a valid Rust version"
437437 ) ) ;
438438 None
@@ -443,7 +443,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
443443 if let Some ( clippy_msrv) = clippy_msrv {
444444 // if both files have an msrv, let's compare them and emit a warning if they differ
445445 if clippy_msrv != cargo_msrv {
446- sess. warn ( & format ! (
446+ sess. warn ( format ! (
447447 "the MSRV in `clippy.toml` and `Cargo.toml` differ; using `{clippy_msrv}` from `clippy.toml`"
448448 ) ) ;
449449 }
@@ -472,7 +472,7 @@ pub fn read_conf(sess: &Session) -> Conf {
472472 let TryConf { conf, errors, warnings } = utils:: conf:: read ( & file_name) ;
473473 // all conf errors are non-fatal, we just use the default conf in case of error
474474 for error in errors {
475- sess. err ( & format ! (
475+ sess. err ( format ! (
476476 "error reading Clippy's configuration file `{}`: {}" ,
477477 file_name. display( ) ,
478478 format_error( error)
0 commit comments