fix String to &str cast

This commit is contained in:
Esteban Küber 2016-12-21 23:13:11 -08:00
parent bf7d7ae7fa
commit de69a3b7e5

View File

@ -2206,7 +2206,7 @@ impl Path {
}
pub fn last_name(&self) -> &str {
self.segments.last().unwrap().name
self.segments.last().unwrap().name.as_str()
}
}