Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/doctor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl Doctor {
let path = env
.get(&*PATH_KEY)
.ok_or_else(|| eyre::eyre!("Path not found"))?;
Ok(split_paths(path).map(PathBuf::from).collect())
Ok(split_paths(path).collect())
}

fn analyze_paths(&mut self, ts: &Toolset) -> eyre::Result<()> {
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]

use crate::cli::version::VERSION;
use crate::cli::Cli;
use color_eyre::{Section, SectionExt};
Expand Down
2 changes: 2 additions & 0 deletions src/shell/bash.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]
use std::fmt::Display;

use indoc::formatdoc;
Expand Down
2 changes: 2 additions & 0 deletions src/shell/elvish.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]
use std::fmt::Display;

use crate::shell::{ActivateOptions, Shell};
Expand Down
2 changes: 2 additions & 0 deletions src/shell/fish.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]
use std::fmt::{Display, Formatter};

use crate::config::Settings;
Expand Down
2 changes: 2 additions & 0 deletions src/shell/nushell.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]
use std::fmt::Display;

use indoc::formatdoc;
Expand Down
2 changes: 2 additions & 0 deletions src/shell/pwsh.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]
use crate::config::Settings;
use std::borrow::Cow;
use std::fmt::Display;
Expand Down
2 changes: 2 additions & 0 deletions src/shell/xonsh.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]
use std::borrow::Cow;
use std::fmt::Display;

Expand Down
2 changes: 2 additions & 0 deletions src/shell/zsh.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]
use std::fmt::Display;

use indoc::formatdoc;
Expand Down
5 changes: 3 additions & 2 deletions src/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ impl Task {
return true;
}
let pat = pat.rsplitn(2, '.').last().unwrap_or_default();
self.name == pat || self.aliases.contains(&pat.to_string())
self.name.rsplitn(2, '.').last().unwrap_or_default() == pat
|| self.aliases.contains(&pat.to_string())
}

pub fn task_dir() -> PathBuf {
Expand All @@ -241,7 +242,7 @@ impl Task {
}

pub fn prefix(&self) -> String {
format!("[{}]", self.name)
format!("[{}]", self.display_name())
}

pub fn run(&self) -> &Vec<String> {
Expand Down
3 changes: 3 additions & 0 deletions src/ui/progress_report.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![allow(unknown_lints)]
#![allow(clippy::literal_string_with_formatting_args)]

use std::sync::Mutex;
use std::time::Duration;

Expand Down
File renamed without changes.
Loading