]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/back/link.rs
remove unnecessary parentheses from range notation
[rust.git] / src / librustc_trans / back / link.rs
index dacf620cbd1d0e1c7a5ef97465e1f65e60286159..cfb8c88ce4092b45947cf59b8c59e14ebdd05584 100644 (file)
@@ -1183,7 +1183,7 @@ fn add_static_crate(cmd: &mut Command, sess: &Session, tmpdir: &Path,
         // against the archive.
         if sess.lto() {
             let name = cratepath.filename_str().unwrap();
-            let name = &name[3..(name.len() - 5)]; // chop off lib/.rlib
+            let name = &name[3..name.len() - 5]; // chop off lib/.rlib
             time(sess.time_passes(),
                  &format!("altering {}.rlib", name)[],
                  (), |()| {