Skip to content

Commit

Permalink
⬆️ deps: Update dependencies (non-major) (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: SigureMo <sigure.qaq@gmail.com>
  • Loading branch information
renovate[bot] and SigureMo authored Feb 7, 2025
1 parent 90e9688 commit efea8e4
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 39 deletions.
123 changes: 87 additions & 36 deletions 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
Expand Up @@ -31,7 +31,7 @@ openssl = { version = "0.10", features = ["vendored"] }

[dependencies]
clap = { version = "4.5.4", features = ["derive"] }
rand = "0.8.5"
rand = "0.9.0"
serde = { version = "1.0.199", features = ["derive"] }
serde_json = "1.0.116"
dirs = "6.0"
Expand Down
4 changes: 2 additions & 2 deletions src/cli/choose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::config::Config;
use crate::kitchen::partial_data::get_partial_metadata;
use crate::reply;
use console::style;
use rand::prelude::SliceRandom;
use rand::prelude::IndexedRandom;

pub fn choose(args: ChooseArgs) -> std::io::Result<()> {
if !Config::exists() {
Expand All @@ -20,7 +20,7 @@ pub fn choose(args: ChooseArgs) -> std::io::Result<()> {
let replies = reply::load_saved_replies_from_config(config, &metadata);
let selected_reply;
if args.random {
selected_reply = replies.choose(&mut rand::thread_rng()).unwrap();
selected_reply = replies.choose(&mut rand::rng()).unwrap();
eprintln!("{}", selected_reply.title);
println!("{}", selected_reply.content);
} else {
Expand Down

0 comments on commit efea8e4

Please sign in to comment.