Skip to content

Commit 5074a8e

Browse files
committed
add repo-wide clippy lints
1 parent 1a961f3 commit 5074a8e

File tree

26 files changed

+82
-8
lines changed

26 files changed

+82
-8
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,7 @@ codegen-units = 1
6767
opt-level = "s"
6868
# Strip debug symbols
6969
strip = "symbols"
70+
71+
[workspace.lints.clippy]
72+
print_stderr = "deny"
73+
print_stdout = "deny"

crates/artifact_content/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ serde = { workspace = true }
2121
serde_json = { workspace = true }
2222
thiserror = { workspace = true }
2323
tracing = { workspace = true }
24+
25+
[lints]
26+
workspace = true

crates/common_lang_types/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ string_key_newtype = { path = "../string_key_newtype" }
1111
pico = { path = "../pico" }
1212
serde = { workspace = true }
1313
pathdiff = { workspace = true }
14+
15+
[lints]
16+
workspace = true

crates/graphql_lang_types/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ common_lang_types = { path = "../common_lang_types" }
1010
strum = { workspace = true }
1111
serde = { workspace = true }
1212
thiserror = { workspace = true }
13+
14+
[lints]
15+
workspace = true

crates/graphql_network_protocol/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ lazy_static = { workspace = true }
1818
pathdiff = { workspace = true }
1919
thiserror = { workspace = true }
2020
tracing = { workspace = true }
21+
22+
[lints]
23+
workspace = true

crates/graphql_schema_parser/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ graphql_lang_types = { path = "../graphql_lang_types" }
1111
common_lang_types = { path = "../common_lang_types" }
1212
logos = { workspace = true }
1313
thiserror = { workspace = true }
14+
15+
[lints]
16+
workspace = true

crates/impl_base_types_macro/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ syn = { workspace = true }
1111

1212
[lib]
1313
proc-macro = true
14+
15+
[lints]
16+
workspace = true

crates/isograph_cli/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ tracing-subscriber = { workspace = true }
2525
tracing-opentelemetry = { workspace = true }
2626
opentelemetry = { workspace = true }
2727
opentelemetry-otlp = { workspace = true }
28+
29+
[lints]
30+
workspace = true

crates/isograph_compiler/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ regex = { workspace = true }
2424
thiserror = { workspace = true }
2525
tokio = { workspace = true }
2626
tracing = { workspace = true }
27+
28+
[lints]
29+
workspace = true

crates/isograph_compiler/src/watch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use notify_debouncer_full::{
1111
};
1212
use std::{path::PathBuf, time::Duration};
1313
use tokio::{runtime::Handle, sync::mpsc::Receiver};
14-
use tracing::info;
14+
use tracing::{info, warn};
1515

1616
use crate::{
1717
batch_compile::{BatchCompileError, compile, print_result},
@@ -251,7 +251,7 @@ pub fn create_debounced_file_watcher(
251251
let sender = sender.clone();
252252
current_runtime.spawn(async move {
253253
if let Err(e) = sender.send(events).await {
254-
println!("Error sending event result: {e:?}");
254+
warn!("Error sending event result: {e:?}");
255255
}
256256
});
257257
}

0 commit comments

Comments
 (0)