1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 02:57:44 +00:00

fix clippy src/

This commit is contained in:
n4n5 2024-06-30 16:27:00 +02:00
parent 0a2394faa0
commit 81de2be5ab
No known key found for this signature in database
GPG key ID: 79414EADC6D4B457
6 changed files with 67 additions and 13 deletions

View file

@ -11,14 +11,14 @@ use std::io::Write;
use std::path::Path;
pub fn main() {
if let Ok(profile) = env::var("PROFILE") {
println!("cargo:rustc-cfg=build={profile:?}");
}
const ENV_FEATURE_PREFIX: &str = "CARGO_FEATURE_";
const FEATURE_PREFIX: &str = "feat_";
const OVERRIDE_PREFIX: &str = "uu_";
if let Ok(profile) = env::var("PROFILE") {
println!("cargo:rustc-cfg=build={profile:?}");
}
let out_dir = env::var("OUT_DIR").unwrap();
let mut crates = Vec::new();
@ -46,6 +46,7 @@ pub fn main() {
"type UtilityMap<T> = phf::OrderedMap<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\
\n\
#[allow(clippy::too_many_lines)]
#[allow(clippy::unreadable_literal)]
fn util_map<T: uucore::Args>() -> UtilityMap<T> {\n"
.as_bytes(),
)