summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-12-15 10:44:43 +0800
committer魏曹先生 <1992414357@qq.com>2025-12-15 10:44:43 +0800
commit0ca867fdb2277e42719eb58e49d96942df06e9e6 (patch)
tree3493ccb9bb4f4ae463cd45ef2b8f6755f6851c7a
parentb4605ba20a92fc5c74dd34af7e682acbd6af2263 (diff)
Revert lost items display in `jv status` to previous (b8ac698) style
-rw-r--r--src/bin/jv.rs20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs
index e336092..14e99a8 100644
--- a/src/bin/jv.rs
+++ b/src/bin/jv.rs
@@ -1785,18 +1785,14 @@ async fn jv_status(_args: StatusArgs) {
let mut lost_items: Vec<String> = analyzed
.lost
.iter()
- .filter_map(|path| {
- let path_str = path.display().to_string();
- if analyzed.erased.contains(path) {
- return None;
- } else {
- return Some(
- t!("jv.success.status.lost_item", path = path_str)
- .trim()
- .red()
- .to_string(),
- );
- }
+ .map(|path| {
+ t!(
+ "jv.success.status.lost_item",
+ path = path.display().to_string()
+ )
+ .trim()
+ .red()
+ .to_string()
})
.collect();