summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flags.rs6
-rw-r--r--src/handlers.rs6
2 files changed, 8 insertions, 4 deletions
diff --git a/src/flags.rs b/src/flags.rs
index 2e4862218..13f065735 100644
--- a/src/flags.rs
+++ b/src/flags.rs
@@ -154,7 +154,8 @@ fn parse_core_args(args: Vec<String>) -> (Vec<String>, Vec<String>) {
}
true
- }).collect();
+ })
+ .collect();
// Replace args being sent to V8
for idx in 0..args.len() {
@@ -221,6 +222,7 @@ pub fn v8_set_flags(args: Vec<String>) -> Vec<String> {
let cstr = CStr::from_ptr(*ptr as *const i8);
let slice = cstr.to_str().unwrap();
slice.to_string()
- }).chain(rest.into_iter())
+ })
+ .chain(rest.into_iter())
.collect()
}
diff --git a/src/handlers.rs b/src/handlers.rs
index 39f2d51aa..f13ecec9f 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -288,7 +288,8 @@ fn handle_env(d: *const DenoC, base: &msg::Base) -> Box<Op> {
..Default::default()
},
)
- }).collect();
+ })
+ .collect();
let tables = builder.create_vector(&vars);
let msg = msg::EnvironRes::create(
builder,
@@ -401,7 +402,8 @@ where
.and_then(|_| {
cb();
Ok(())
- }).select(cancel_rx)
+ })
+ .select(cancel_rx)
.map(|_| ())
.map_err(|_| ());