Skip to content

Commit 73dae88

Browse files
committed
chore: Better human reading; fix warnings; v0.8.5
1 parent 4dcf5d5 commit 73dae88

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nrip"
3-
version = "0.8.4"
3+
version = "0.8.5"
44
edition = "2024"
55
license = "MIT OR Apache-2.0"
66
description = "Safe rm with a graveyard (MVP: rm, ls, prune, resurrect)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Inspired by [rip](https://github.com/nivekuil/rip) — hence the binary name `nrip` (new rip).
66

7-
**MVP v0.8.4**: `--prune`, `--list`, `--resurrect`, contextual shell completion, **interactive picker (fzf)**.
7+
**MVP v0.8.5**: `--prune`, `--list`, `--resurrect`, contextual shell completion, **interactive picker (fzf)**.
88

99
> **Default paths (XDG)**
1010
>

src/index.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,15 @@ use std::io::Write;
77
use std::path::{Path, PathBuf};
88
use tempfile::NamedTempFile;
99

10-
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
10+
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Default)]
1111
pub enum Kind {
1212
File,
1313
Dir,
1414
Symlink,
15+
#[default]
1516
Other,
1617
}
1718

18-
impl Default for Kind {
19-
fn default() -> Self {
20-
Kind::Other
21-
}
22-
}
23-
2419
#[derive(Debug, Clone, Serialize, Deserialize)]
2520
pub struct Entry {
2621
pub original_path: PathBuf,

0 commit comments

Comments
 (0)