[cache_dump] Squash some clippy warnings

This commit is contained in:
Joe Thornber
2021-03-03 09:48:15 +00:00
parent 3cf0dba469
commit fdcc09c27e
4 changed files with 7 additions and 7 deletions

4
src/cache/dump.rs vendored
View File

@@ -23,7 +23,7 @@ struct MappingEmitter {
impl MappingEmitter {
pub fn new(emitter: Arc<Mutex<dyn MetadataVisitor>>) -> MappingEmitter {
MappingEmitter {
emitter: emitter,
emitter,
}
}
}
@@ -58,7 +58,7 @@ struct HintEmitter<Width> {
impl<Width> HintEmitter<Width> {
pub fn new(emitter: Arc<Mutex<dyn MetadataVisitor>>) -> HintEmitter<Width> {
HintEmitter {
emitter: emitter,
emitter,
_not_used: PhantomData,
}
}