Skip to content

Commit de69a3b

Browse files
committed
fix String to &str cast
1 parent bf7d7ae commit de69a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2206,7 +2206,7 @@ impl Path {
22062206
}
22072207

22082208
pub fn last_name(&self) -> &str {
2209-
self.segments.last().unwrap().name
2209+
self.segments.last().unwrap().name.as_str()
22102210
}
22112211
}
22122212

0 commit comments

Comments
 (0)