Impl Into<FileLockEntry> on Ref type
This commit is contained in:
parent
637917f8cb
commit
900513594c
1 changed files with 8 additions and 0 deletions
|
@ -511,6 +511,14 @@ impl<'a> Display for Ref<'a> {
|
|||
|
||||
}
|
||||
|
||||
impl<'a> Into<FileLockEntry<'a>> for Ref<'a> {
|
||||
|
||||
fn into(self) -> FileLockEntry<'a> {
|
||||
self.0
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fn hash_file_contents(f: &mut File) -> String {
|
||||
let mut hasher = Sha1::new();
|
||||
let mut s = String::new();
|
||||
|
|
Loading…
Reference in a new issue