mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-09 05:58:55 +00:00
working_copy: remove an unneccessary Box
This commit is contained in:
parent
0a6bcb0fbe
commit
066f31a15d
1 changed files with 2 additions and 2 deletions
|
@ -551,11 +551,11 @@ impl TreeState {
|
|||
path: &RepoPath,
|
||||
disk_path: &Path,
|
||||
) -> Result<FileId, SnapshotError> {
|
||||
let file = File::open(disk_path).map_err(|err| SnapshotError::IoError {
|
||||
let mut file = File::open(disk_path).map_err(|err| SnapshotError::IoError {
|
||||
message: format!("Failed to open file {}", disk_path.display()),
|
||||
err,
|
||||
})?;
|
||||
Ok(self.store.write_file(path, &mut Box::new(file))?)
|
||||
Ok(self.store.write_file(path, &mut file)?)
|
||||
}
|
||||
|
||||
fn write_symlink_to_store(
|
||||
|
|
Loading…
Reference in a new issue