diff --git a/Cargo.toml b/Cargo.toml index 8921237af..37cdc1332 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -99,7 +99,7 @@ embed-data = ["dep:rust-embed"] asan = [] tsan = [] -[lints] +[workspace.lints] rust.non_camel_case_types = "allow" rust.non_upper_case_globals = "allow" rust.unknown_lints = "allow" @@ -113,3 +113,6 @@ clippy.needless_lifetimes = "allow" # In the future, they might change to flag other methods of printing. clippy.print_stdout = "deny" clippy.print_stderr = "deny" + +[lints] +workspace = true diff --git a/printf/Cargo.toml b/printf/Cargo.toml index cf387ec72..09a6413ca 100644 --- a/printf/Cargo.toml +++ b/printf/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "fish-printf" -edition = "2021" +edition.workspace = true +rust-version.workspace = true version = "0.2.1" repository = "https://github.com/fish-shell/fish-shell" description = "printf implementation, based on musl" @@ -9,3 +10,6 @@ license = "MIT" [dependencies] libc = "0.2.155" widestring = { version = "1.0.2", optional = true } + +[lints] +workspace = true diff --git a/printf/clippy.toml b/printf/clippy.toml new file mode 100644 index 000000000..40b1dda5b --- /dev/null +++ b/printf/clippy.toml @@ -0,0 +1 @@ +allow-print-in-tests = true