summaryrefslogtreecommitdiff
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-01-15 13:06:25 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-01-15 07:06:25 -0500
commitd8adeb41de2daab15a0d30eeead9796fa58bfbc3 (patch)
tree030670147587a2ebc04506a3dcad7bd34bce1016 /src/compiler.rs
parent48ca06e420d08d15ac6653ab73c6249eb99428a7 (diff)
Clippy fixes (also fixes build with nightly) (#1527)
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs4
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(),