Fix warning

This commit is contained in:
Nathan Sobo 2021-04-15 21:05:18 -06:00
parent af47ef94d5
commit b55acb63f0

View file

@ -166,6 +166,7 @@ impl Worktree {
Ok(path)
}
#[cfg(test)]
fn inode_for_path(&self, path: impl AsRef<Path>) -> Option<u64> {
let path = path.as_ref();
self.root_inode().and_then(|mut inode| {