Skip to content

Commit 6ace7f8

Browse files
author
Stephan Dilly
committed
cleanup
1 parent a99baa0 commit 6ace7f8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

asyncgit/src/sync/staging/stage_tracked.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ pub fn stage_lines(
5151

5252
idx.id = blob_id;
5353
idx.file_size = u32::try_conv(new_content.as_bytes().len())?;
54-
//TODO: can we simply use add_frombuffer?
5554
index.add(&idx)?;
5655

5756
index.write()?;

asyncgit/src/sync/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
};
1212

1313
/// `tree_files` returns a list of `FileTree`
14-
#[derive(Debug, PartialEq)]
14+
#[derive(Debug, PartialEq, Clone)]
1515
pub struct TreeFile {
1616
/// path of this file
1717
pub path: PathBuf,

0 commit comments

Comments
 (0)