No clone according to clippy
This commit is contained in:
parent
9644aa9b95
commit
11a0b8a06f
|
@ -68,7 +68,7 @@ impl Object {
|
||||||
#[getter]
|
#[getter]
|
||||||
fn name(&self) -> Option<&str> {
|
fn name(&self) -> Option<&str> {
|
||||||
match self.inner.as_ref().unwrap() {
|
match self.inner.as_ref().unwrap() {
|
||||||
goblin::Object::Mach(Mach::Binary(macho)) => macho.name.clone(),
|
goblin::Object::Mach(Mach::Binary(macho)) => macho.name,
|
||||||
_ => unimplemented!(),
|
_ => unimplemented!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue