diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-01-15 13:06:25 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-15 07:06:25 -0500 |
commit | d8adeb41de2daab15a0d30eeead9796fa58bfbc3 (patch) | |
tree | 030670147587a2ebc04506a3dcad7bd34bce1016 /src/compiler.rs | |
parent | 48ca06e420d08d15ac6653ab73c6249eb99428a7 (diff) |
Clippy fixes (also fixes build with nightly) (#1527)
Diffstat (limited to 'src/compiler.rs')
-rw-r--r-- | src/compiler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(), |