We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4616b39 commit 6bacd88Copy full SHA for 6bacd88
rust/chcache/src/compilers/rustc.rs
@@ -205,7 +205,7 @@ impl Compiler for RustC {
205
fn apply_cache(&self, bytes: &Vec<u8>) -> Result<(), Box<dyn Error>> {
206
trace!("Out dir: {:?}", self.out_dir);
207
208
- let cursor = Cursor::new(&bytes[..]);
+ let cursor = Cursor::new(bytes);
209
let mut archive = tar::Archive::new(cursor);
210
archive.set_preserve_mtime(false);
211
archive.unpack(&self.out_dir)?;
0 commit comments