]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/proc_macro_server.rs
Auto merge of #107206 - cjgillot:no-h2l-map, r=WaffleLapkin
[rust.git] / compiler / rustc_expand / src / proc_macro_server.rs
index af38077b08060b43d350994a2be5e158a220f113..341ae18541b3796a5c58c2a89cfe9c1051fc181b 100644 (file)
@@ -597,8 +597,8 @@ fn eq(&mut self, file1: &Self::SourceFile, file2: &Self::SourceFile) -> bool {
     }
 
     fn path(&mut self, file: &Self::SourceFile) -> String {
-        match file.name {
-            FileName::Real(ref name) => name
+        match &file.name {
+            FileName::Real(name) => name
                 .local_path()
                 .expect("attempting to get a file path in an imported file in `proc_macro::SourceFile::path`")
                 .to_str()