Implement Debug for FileLockEntry, do not derive it
This commit is contained in:
parent
4cbd81ed20
commit
b6437a0b0f
1 changed files with 7 additions and 1 deletions
|
@ -843,7 +843,6 @@ impl Drop for Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A struct that allows you to borrow an Entry
|
/// A struct that allows you to borrow an Entry
|
||||||
#[derive(Debug)]
|
|
||||||
pub struct FileLockEntry<'a> {
|
pub struct FileLockEntry<'a> {
|
||||||
store: &'a Store,
|
store: &'a Store,
|
||||||
entry: Entry,
|
entry: Entry,
|
||||||
|
@ -858,6 +857,13 @@ impl<'a> FileLockEntry<'a, > {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> Debug for FileLockEntry<'a> {
|
||||||
|
fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FMTError> {
|
||||||
|
write!(fmt, "FileLockEntry(Store = {})", self.store.location.to_str()
|
||||||
|
.unwrap_or("Unknown Path"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<'a> Deref for FileLockEntry<'a> {
|
impl<'a> Deref for FileLockEntry<'a> {
|
||||||
type Target = Entry;
|
type Target = Entry;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue