mirror of
https://github.com/denisidoro/navi
synced 2024-11-24 12:33:05 +00:00
Update to rust 1.56.0 and 2021 edition (#637)
This commit is contained in:
parent
63e9d1364e
commit
95e57cf084
3 changed files with 8 additions and 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"
|
||||
|
|
3
rust-toolchain.toml
Normal file
3
rust-toolchain.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
[toolchain]
|
||||
channel = "1.56.0"
|
||||
components = [ "rustfmt", "clippy" ]
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue