summaryrefslogtreecommitdiff
path: root/src/flags.rs
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2018-09-16 13:35:16 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-09-16 13:35:16 -0700
commitb0958073ba426db9636a98900a153af857e129c1 (patch)
tree0365012736578e8dd6ab7931a6ca542d88f5fb25 /src/flags.rs
parent00404865395696fa38e544621ad67a9c2da2f455 (diff)
Remove remove_timer asserts (#760)
* Remove remove_timer asserts * Add clearTimeout invalid id no-panic test * Move timer test to its file AND some lint side-effects
Diffstat (limited to 'src/flags.rs')
-rw-r--r--src/flags.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/flags.rs b/src/flags.rs
index 13f065735..2e4862218 100644
--- a/src/flags.rs
+++ b/src/flags.rs
@@ -154,8 +154,7 @@ 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() {
@@ -222,7 +221,6 @@ 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()
}