mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-07 21:34:31 +08:00
Attempt to fix clippy lints
This commit is contained in:
parent
e3864c752a
commit
54cc932215
|
@ -21,6 +21,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
#![allow(unstable_name_collisions)]
|
#![allow(unstable_name_collisions)]
|
||||||
#![allow(clippy::uninlined_format_args)]
|
#![allow(clippy::uninlined_format_args)]
|
||||||
|
|
||||||
|
#[cfg(feature = "installable")]
|
||||||
|
use fish::common::wcs2osstring;
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use fish::future::IsSomeAnd;
|
use fish::future::IsSomeAnd;
|
||||||
use fish::{
|
use fish::{
|
||||||
|
@ -30,7 +32,7 @@ use fish::{
|
||||||
},
|
},
|
||||||
common::{
|
common::{
|
||||||
escape, get_executable_path, save_term_foreground_process_group, scoped_push_replacer,
|
escape, get_executable_path, save_term_foreground_process_group, scoped_push_replacer,
|
||||||
str2wcstring, wcs2osstring, wcs2string, PACKAGE_NAME, PROFILING_ACTIVE, PROGRAM_NAME,
|
str2wcstring, wcs2string, PACKAGE_NAME, PROFILING_ACTIVE, PROGRAM_NAME,
|
||||||
},
|
},
|
||||||
env::{
|
env::{
|
||||||
environment::{env_init, EnvStack, Environment},
|
environment::{env_init, EnvStack, Environment},
|
||||||
|
@ -191,10 +193,9 @@ fn install(confirm: bool, dir: PathBuf) -> bool {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(clippy, not(feature = "installable")))]
|
#[cfg(clippy)]
|
||||||
fn install(_confirm: bool, _dir: PathBuf) -> bool {
|
fn install(_confirm: bool, _dir: PathBuf) -> bool {
|
||||||
eprintln!("Fish was built without support for self-installation");
|
unreachable!()
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// container to hold the options specified within the command line
|
/// container to hold the options specified within the command line
|
||||||
|
|
Loading…
Reference in New Issue
Block a user