From d8adeb41de2daab15a0d30eeead9796fa58bfbc3 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 15 Jan 2019 13:06:25 +0100 Subject: Clippy fixes (also fixes build with nightly) (#1527) --- src/compiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler.rs') diff --git a/src/compiler.rs b/src/compiler.rs index ca77213c7..bfbcad1db 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -29,9 +29,9 @@ pub struct CodeFetchOutput { } impl CodeFetchOutput { - pub fn js_source<'a>(&'a self) -> String { + pub fn js_source(&self) -> String { if self.media_type == msg::MediaType::Json { - return String::from(format!("export default {};", self.source_code)); + return format!("export default {};", self.source_code); } match self.maybe_output_code { None => self.source_code.clone(), -- cgit v1.2.3