Skip to content

Commit 6bacd88

Browse files
committed
Lint
1 parent 4616b39 commit 6bacd88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/chcache/src/compilers/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl Compiler for RustC {
205205
fn apply_cache(&self, bytes: &Vec<u8>) -> Result<(), Box<dyn Error>> {
206206
trace!("Out dir: {:?}", self.out_dir);
207207

208-
let cursor = Cursor::new(&bytes[..]);
208+
let cursor = Cursor::new(bytes);
209209
let mut archive = tar::Archive::new(cursor);
210210
archive.set_preserve_mtime(false);
211211
archive.unpack(&self.out_dir)?;

0 commit comments

Comments
 (0)