Skip to content

Commit

Permalink
Update tokio, serde, fix a new lint (1.76.0) and a warning in test
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Feb 13, 2024
1 parent 41596ab commit 2f1cd40
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 37 deletions.
64 changes: 32 additions & 32 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions crates/tiny/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ libtiny_logger = { path = "../libtiny_logger" }
libtiny_tui = { path = "../libtiny_tui", default-features = false }
libtiny_wire = { path = "../libtiny_wire" }
log = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1.0.196", features = ["derive"] }
serde_yaml = "0.8"
shell-words = "1.1.0"
time = "0.1"
tokio = { version = "1.17", default-features = false, features = [] }
tokio = { version = "1.36", default-features = false, features = [] }
tokio-stream = { version = "0.1", features = [] }

[dev-dependencies]
Expand Down
3 changes: 1 addition & 2 deletions crates/tiny/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ fn get_default_config_yaml() -> String {
#[cfg(test)]
mod tests {
use libtiny_common::ChanName;
use serde_yaml;

use super::*;

Expand All @@ -467,7 +466,7 @@ mod tests {
servers[0].join,
vec![Chan::Name(ChanName::new("#tiny".to_string()))]
);
assert_eq!(servers[0].tls, true);
assert!(servers[0].tls);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/tiny/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn handle_input_ev(

pub(crate) fn send_msg(
ui: &UI,
clients: &mut Vec<Client>,
clients: &mut [Client],
src: &MsgSource,
msg: String,
is_action: bool,
Expand Down

0 comments on commit 2f1cd40

Please sign in to comment.