Require Rust 1.41 (was 1.40)

This is required for Result::map_or_else.

Additionally, run clippy with 1.41 as well. Otherwise it reports
suggestions that are not compatible with 1.41.
This commit is contained in:
Danilo Bargen 2021-02-05 00:01:33 +01:00
commit cb57ac1d5d
3 changed files with 2 additions and 4 deletions

View file

@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
rust: [1.40.0, stable]
rust: [1.41.1, stable]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
@ -45,7 +45,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.46.0
toolchain: 1.41.1
components: clippy
override: true
- uses: actions-rs/clippy-check@v1

View file

@ -242,7 +242,6 @@ impl Cache {
}
/// Delete the cache directory.
#[allow(clippy::map_err_ignore)]
pub fn clear() -> Result<(), TealdeerError> {
let (path, _) = Self::get_cache_dir()?;
if path.exists() && path.is_dir() {

View file

@ -61,7 +61,6 @@ const ARCHIVE_URL: &str = "https://github.com/tldr-pages/tldr/archive/master.tar
const PAGER_COMMAND: &str = "less -R";
#[derive(Debug, Deserialize)]
#[allow(clippy::struct_excessive_bools)]
struct Args {
arg_command: Option<Vec<String>>,
flag_help: bool,