diff options
author | Chelsea Holland Komlo <me@chelseakomlo.com> | 2017-11-27 23:00:33 -0500 |
---|---|---|
committer | Chelsea Holland Komlo <me@chelseakomlo.com> | 2017-12-21 15:29:33 -0500 |
commit | cd8bcacfe1053d067127507b4ebd8bd7b33309e9 (patch) | |
tree | 96034a824fa2fd218b7ddcfea3ec1fe646d05972 /src/rust/protover/protover.rs | |
parent | 3dfe8e6522460817100582a33a382be3c3efd988 (diff) | |
download | tor-cd8bcacfe1053d067127507b4ebd8bd7b33309e9.tar.gz tor-cd8bcacfe1053d067127507b4ebd8bd7b33309e9.zip |
cargo fmt fixes
Diffstat (limited to 'src/rust/protover/protover.rs')
-rw-r--r-- | src/rust/protover/protover.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs index 1c159afef7..bb2b8f056a 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(); |