commit cd8bcacfe1053d067127507b4ebd8bd7b33309e9 Author: Chelsea Holland Komlo me@chelseakomlo.com Date: Mon Nov 27 23:00:33 2017 -0500
cargo fmt fixes --- src/rust/protover/ffi.rs | 8 +++++--- src/rust/protover/protover.rs | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs index 3eb22c933..02b7dec37 100644 --- a/src/rust/protover/ffi.rs +++ b/src/rust/protover/ffi.rs @@ -127,9 +127,11 @@ pub extern "C" fn protocol_list_supports_protocol_or_later( Err(_) => return 0, };
- let is_supported = - protover_string_supports_protocol_or_later( - protocol_list, protocol, version); + let is_supported = protover_string_supports_protocol_or_later( + protocol_list, + protocol, + version, + );
return if is_supported { 1 } else { 0 }; } diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs index 1c159afef..bb2b8f056 100644 --- a/src/rust/protover/protover.rs +++ b/src/rust/protover/protover.rs @@ -496,9 +496,7 @@ fn find_range(list: &Vec<u32>) -> (bool, u32) { /// A `String` representation of this set in ascending order. /// fn contract_protocol_list<'a>(supported_set: &'a HashSet<u32>) -> String { - let mut supported: Vec<u32> = supported_set.iter() - .map(|x| *x) - .collect(); + let mut supported: Vec<u32> = supported_set.iter().map(|x| *x).collect(); supported.sort();
let mut final_output: Vec<String> = Vec::new();