Use &str rather than &String.
This commit is contained in:
@@ -37,7 +37,7 @@ impl Ticket {
|
|||||||
status,
|
status,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn assigned_to(&self) -> &String {
|
pub fn assigned_to(&self) -> &str {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user