Skip to content

Commit

Permalink
chore: fmt + vers update
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Oct 5, 2023
1 parent 6d026b3 commit 2ec85b0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mds"
version = "0.18.5"
version = "0.18.6"
author = ["dj8yf0μl"]
description = "A skim-based `*.md` explore and surf note-taking tool"
repository = "https://github.com/dj8yfo/meudeus"
Expand Down
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```

```
meudeus v0.18.5
meudeus v0.18.6
a skim shredder for plain-text papers
Usage: mds [OPTIONS] <COMMAND>
Expand Down
7 changes: 4 additions & 3 deletions src/commands/explore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,15 @@ pub(crate) async fn exec(
let mut success = true;
for note in removed.clone() {
match remove(db.clone(), note.clone(), true).await {
Ok(true) => {},
Ok(false) => { success = false;},
Ok(true) => {}
Ok(false) => {
success = false;
}
Err(err) => {
eprintln!("remove error: {:?}", err);
success = false;
}
}

}

let next = match success {
Expand Down
3 changes: 2 additions & 1 deletion src/config/external_commands/cmd_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ impl TryFrom<&KdlNode> for CmdTemplate {
return Err(KdlNodeErrorType {
err_span: *value.span(),
description: "node expected to have at least 1 argument".to_string(),
}).map_err(Into::<miette::Report>::into)?;
})
.map_err(Into::<miette::Report>::into)?;
};

let command = first
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ fn load_theme(color: Color) -> Option<&'static Theme> {
async fn main() {
env_logger::init();
let cmd = clap::Command::new("mds")
.version("v0.18.5")
.about("meudeus v0.18.5\na skim shredder for plain-text papers")
.version("v0.18.6")
.about("meudeus v0.18.6\na skim shredder for plain-text papers")
.bin_name("mds")
.arg(clap::arg!(-c --color "whether color output should be forced"))
.subcommand_required(true)
Expand Down
10 changes: 4 additions & 6 deletions src/skim/explore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,10 @@ impl Iteration {
}
}

keymap::explore::Action::RemoveNote => {
Ok(Out {
action: Action::Remove(selected_items),
next_items: vec![],
})
}
keymap::explore::Action::RemoveNote => Ok(Out {
action: Action::Remove(selected_items),
next_items: vec![],
}),

keymap::explore::Action::CreateAutolinkedNote => {
if let Some(item) = selected_items.first() {
Expand Down

0 comments on commit 2ec85b0

Please sign in to comment.