diff options
Diffstat (limited to 'rust-src/src/cmd_list.rs')
-rw-r--r-- | rust-src/src/cmd_list.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rust-src/src/cmd_list.rs b/rust-src/src/cmd_list.rs index 1d71bf9e..15f3f71f 100644 --- a/rust-src/src/cmd_list.rs +++ b/rust-src/src/cmd_list.rs @@ -17,10 +17,8 @@ fn list_keys(fs: &Fs, opt: Cli) -> anyhow::Result<()> { BtreeIterFlags::PREFETCH); while let Some(k) = iter.peek_and_restart()? { - unsafe { - if (*k.k).p > opt.end { - break; - } + if k.k.p > opt.end { + break; } println!("{}", k.to_text(fs)); |