From de69a3b7e5cf5c2a8d79fa93013ea581a75493ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Wed, 21 Dec 2016 23:13:11 -0800 Subject: [PATCH] fix String to &str cast --- src/librustdoc/clean/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 5b8b2ecf95d..a48af1c162b 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -2206,7 +2206,7 @@ impl Path { } pub fn last_name(&self) -> &str { - self.segments.last().unwrap().name + self.segments.last().unwrap().name.as_str() } }