mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-21 15:44:18 +02:00
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:
parent
ca15279386
commit
cb57ac1d5d
3 changed files with 2 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue