]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_driver/args.rs
Rollup merge of #73953 - JohnTitor:audit-hidden-sugg, r=estebank
[rust.git] / src / librustc_driver / args.rs
index 5e2c43596dbebdf6c1657b85bfb5c7695ecfd6d3..5686819c61b402441490e510ce66f40b5333f9a7 100644 (file)
@@ -4,7 +4,7 @@
 use std::io;
 
 pub fn arg_expand(arg: String) -> Result<Vec<String>, Error> {
-    if arg.starts_with("@") {
+    if arg.starts_with('@') {
         let path = &arg[1..];
         let file = match fs::read_to_string(path) {
             Ok(file) => file,