Impl Into<FileLockEntry> on Ref type

This commit is contained in:
Matthias Beyer 2016-07-14 20:37:32 +02:00
parent 637917f8cb
commit 900513594c

View file

@ -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();