fix String to &str cast
This commit is contained in:
parent
bf7d7ae7fa
commit
de69a3b7e5
@ -2206,7 +2206,7 @@ impl Path {
|
||||
}
|
||||
|
||||
pub fn last_name(&self) -> &str {
|
||||
self.segments.last().unwrap().name
|
||||
self.segments.last().unwrap().name.as_str()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user