mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-18 20:53:40 +08:00
Really hide install() from clippy
Some checks failed
make test / ubuntu (push) Has been cancelled
make test / ubuntu-32bit-static-pcre2 (push) Has been cancelled
make test / ubuntu-asan (push) Has been cancelled
make test / macos (push) Has been cancelled
Rust checks / rustfmt (push) Has been cancelled
Rust checks / clippy (push) Has been cancelled
Some checks failed
make test / ubuntu (push) Has been cancelled
make test / ubuntu-32bit-static-pcre2 (push) Has been cancelled
make test / ubuntu-asan (push) Has been cancelled
make test / macos (push) Has been cancelled
Rust checks / rustfmt (push) Has been cancelled
Rust checks / clippy (push) Has been cancelled
This commit is contained in:
parent
fa298c41e0
commit
99fa8aaaa7
|
@ -78,12 +78,9 @@ const SYSCONF_DIR: &str = env!("SYSCONFDIR");
|
|||
const BIN_DIR: &str = env!("BINDIR");
|
||||
|
||||
#[cfg(feature = "installable")]
|
||||
#[allow(unused_variables)]
|
||||
#[allow(unreachable_code)]
|
||||
fn install(confirm: bool) {
|
||||
// Disable for clippy because otherwise it would require sphinx
|
||||
#[cfg(clippy)]
|
||||
return;
|
||||
#[cfg(not(clippy))]
|
||||
fn install(confirm: bool) {
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
#[derive(RustEmbed)]
|
||||
|
@ -199,7 +196,7 @@ fn install(confirm: bool) {
|
|||
std::process::exit(0);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "installable"))]
|
||||
#[cfg(any(clippy, not(feature = "installable")))]
|
||||
fn install(_confirm: bool) {
|
||||
eprintln!("Fish was built without support for self-installation");
|
||||
std::process::exit(1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user