summaryrefslogtreecommitdiff
path: root/src/compiler.rs
diff options
context:
space:
mode:
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(),