aboutsummaryrefslogtreecommitdiff
path: root/src/rust/smartlist/smartlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust/smartlist/smartlist.rs')
-rw-r--r--src/rust/smartlist/smartlist.rs5
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() {