Remove unnecessary .clone()

This commit is contained in:
Shotaro Yamada
2019-06-08 19:06:58 +09:00
parent 165842ba1f
commit 6a0abd6048
14 changed files with 14 additions and 14 deletions

View File

@@ -409,7 +409,7 @@ impl server::TokenStream for Rustc<'_> {
}
fn from_str(&mut self, src: &str) -> Self::TokenStream {
parse::parse_stream_from_source_str(
FileName::proc_macro_source_code(src.clone()),
FileName::proc_macro_source_code(src),
src.to_string(),
self.sess,
Some(self.call_site),