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/flags.rs | |
parent | 48ca06e420d08d15ac6653ab73c6249eb99428a7 (diff) |
Clippy fixes (also fixes build with nightly) (#1527)
Diffstat (limited to 'src/flags.rs')
-rw-r--r-- | src/flags.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/flags.rs b/src/flags.rs index 739b9c9e8..f2d0150b1 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -312,17 +312,12 @@ pub fn v8_set_flags(args: Vec<String>) -> Vec<String> { // Store the length of the c_argv array in a local variable. We'll pass // a pointer to this local variable to deno_set_v8_flags(), which then // updates its value. - #[cfg_attr( - feature = "cargo-clippy", - allow(cast_possible_truncation, cast_possible_wrap) - )] let mut c_argv_len = c_argv.len() as c_int; // Let v8 parse the arguments it recognizes and remove them from c_argv. unsafe { libdeno::deno_set_v8_flags(&mut c_argv_len, c_argv.as_mut_ptr()); }; // If c_argv_len was updated we have to change the length of c_argv to match. - #[cfg_attr(feature = "cargo-clippy", allow(cast_sign_loss))] c_argv.truncate(c_argv_len as usize); // Copy the modified arguments list into a proper rust vec and return it. c_argv |