Skip to content

Commit

Permalink
Update to rust 1.56.0 and 2021 edition (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored Oct 30, 2021
1 parent 63e9d13 commit 95e57cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "navi"
version = "2.18.0"
authors = ["Denis Isidoro <[email protected]>"]
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"
Expand Down
3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "1.56.0"
components = [ "rustfmt", "clippy" ]
8 changes: 4 additions & 4 deletions src/config/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}

0 comments on commit 95e57cf

Please sign in to comment.