1
Fork 0

No clone according to clippy

This commit is contained in:
Jan-Erik Rediger 2023-12-09 00:26:45 +01:00
parent 9644aa9b95
commit 11a0b8a06f

View file

@ -68,7 +68,7 @@ impl Object {
#[getter]
fn name(&self) -> Option<&str> {
match self.inner.as_ref().unwrap() {
goblin::Object::Mach(Mach::Binary(macho)) => macho.name.clone(),
goblin::Object::Mach(Mach::Binary(macho)) => macho.name,
_ => unimplemented!(),
}
}