]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_builtin_macros/src/format.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / compiler / rustc_builtin_macros / src / format.rs
index 85ca1da6f1daa1a9eba11b5895de321657135a27..7e88b58c0e29d99cecfdf21100332b4469be5112 100644 (file)
@@ -270,7 +270,7 @@ impl<'a, 'b> Context<'a, 'b> {
                     parse::ArgumentNamed(s) => Named(s),
                 };
 
-                let ty = Placeholder(match &arg.format.ty[..] {
+                let ty = Placeholder(match arg.format.ty {
                     "" => "Display",
                     "?" => "Debug",
                     "e" => "LowerExp",