Update code snippet to new api
parent
9c2823a1cc
commit
96295dec7c
|
@ -72,8 +72,8 @@ impl PersonTrait for Person {
|
||||||
&self.emit
|
&self.emit
|
||||||
}
|
}
|
||||||
/// Get the name of the Person
|
/// Get the name of the Person
|
||||||
fn get_name(&self) -> String {
|
fn get_name(&self) -> &str {
|
||||||
self.name.clone()
|
&self.name
|
||||||
}
|
}
|
||||||
/// Set the name of the Person
|
/// Set the name of the Person
|
||||||
fn set_name(&mut self, value: String) {
|
fn set_name(&mut self, value: String) {
|
||||||
|
|
Loading…
Reference in New Issue