diff options
author | Faidon Liambotis <paravoid@debian.org> | 2024-01-09 12:52:51 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-12 22:53:22 -0500 |
commit | 5ed0dcc00100c2f361e917760bd114a7af12394a (patch) | |
tree | 7061d505ec48ea404e1b912a2eeaa8fdd1d44f97 /rust-src/src | |
parent | aefc2644017d85ec9b502fb4d10b917c2a0629ed (diff) |
rust: remove dependency on itertools
The only use for itertools is in parse_mount_options() where we take a
vector, convert it to iterator and then join it. Instead, we can join
the vector directly.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'rust-src/src')
-rw-r--r-- | rust-src/src/cmd_mount.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rust-src/src/cmd_mount.rs b/rust-src/src/cmd_mount.rs index 3f8253f5..6db109c4 100644 --- a/rust-src/src/cmd_mount.rs +++ b/rust-src/src/cmd_mount.rs @@ -76,12 +76,11 @@ fn parse_mount_options(options: impl AsRef<str>) -> (Option<String>, libc::c_ulo } }); - use itertools::Itertools; ( if opts.len() == 0 { None } else { - Some(opts.iter().join(",")) + Some(opts.join(",")) }, flags, ) |