diff options
author | Denis Isidoro <denisidoro@users.noreply.github.com> | 2021-10-30 18:07:05 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 18:07:05 -0300 |
commit | 95e57cf084e7e76571608f1eebca7de3006b57b8 (patch) | |
tree | 8ca56216113f73412ffb8a1b83d86e1ba68a4edf | |
parent | 63e9d1364edb92b8b29f3227b21eede9590c054f (diff) |
Update to rust 1.56.0 and 2021 edition (#637)
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | rust-toolchain.toml | 3 | ||||
-rw-r--r-- | src/config/cli.rs | 8 |
3 files changed, 8 insertions, 5 deletions
@@ -2,7 +2,7 @@ name = "navi" version = "2.18.0" authors = ["Denis Isidoro <denis_isidoro@live.com>"] -edition = "2018" +edition = "2021" description = "An interactive cheatsheet tool for the command-line" homepage = "https://github.com/denisidoro/navi" documentation = "https://github.com/denisidoro/navi" diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..bb6a5c9 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.56.0" +components = [ "rustfmt", "clippy" ]
\ No newline at end of file diff --git a/src/config/cli.rs b/src/config/cli.rs index 6b07e43..c92aac8 100644 --- a/src/config/cli.rs +++ b/src/config/cli.rs @@ -217,28 +217,28 @@ mod tests { #[test] fn test_widget_possible_values() { for v in WIDGET_POSSIBLE_VALUES { - assert_eq!(true, Shell::from_str(v).is_ok()) + assert!(Shell::from_str(v).is_ok()) } } #[test] fn test_info_possible_values() { for v in INFO_POSSIBLE_VALUES { - assert_eq!(true, Info::from_str(v).is_ok()) + assert!(Info::from_str(v).is_ok()) } } #[test] fn test_func_possible_values() { for v in FUNC_POSSIBLE_VALUES { - assert_eq!(true, Func::from_str(v).is_ok()) + assert!(Func::from_str(v).is_ok()) } } #[test] fn test_finder_possible_values() { for v in FINDER_POSSIBLE_VALUES { - assert_eq!(true, FinderChoice::from_str(v).is_ok()) + assert!(FinderChoice::from_str(v).is_ok()) } } } |