diff options
author | Chelsea Holland Komlo <me@chelseakomlo.com> | 2017-10-26 09:50:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-27 10:02:08 -0400 |
commit | 6be75bd61d72636a1c23b6fd9866d33a35433a73 (patch) | |
tree | e126a94f3baf863f49f5ff0addcc952ce20e3018 /src/rust/smartlist | |
parent | 90daad999e78c8ec8239e63ea03df6b3b2e364b6 (diff) | |
download | tor-6be75bd61d72636a1c23b6fd9866d33a35433a73.tar.gz tor-6be75bd61d72636a1c23b6fd9866d33a35433a73.zip |
cargo fmt; fix line length warnings
Diffstat (limited to 'src/rust/smartlist')
-rw-r--r-- | src/rust/smartlist/smartlist.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rust/smartlist/smartlist.rs b/src/rust/smartlist/smartlist.rs index 59296ab3b1..9f5e14f1ad 100644 --- a/src/rust/smartlist/smartlist.rs +++ b/src/rust/smartlist/smartlist.rs @@ -30,9 +30,8 @@ impl Smartlist<String> for Stringlist { // unsafe, as we need to extract the smartlist list into a vector of // pointers, and then transform each element into a Rust string. - let elems: &[*const i8] = unsafe { - slice::from_raw_parts(self.list, self.num_used as usize) - }; + let elems: &[*const i8] = + unsafe { slice::from_raw_parts(self.list, self.num_used as usize) }; for elem in elems.iter() { if elem.is_null() { |