Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Jul 10, 2024
1 parent 5d5917a commit 1ab631e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ members = [
resolver = "2"

[workspace.dependencies]
y-octo = { workspace = true, path = "./y-octo" }
y-octo-utils = { workspace = true, path = "./y-octo-utils" }
y-octo = { path = "./y-octo" }
y-octo-utils = { path = "./y-octo-utils" }

[profile.release]
codegen-units = 1
Expand Down
8 changes: 8 additions & 0 deletions y-octo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ thiserror = "1.0"
bench = []
debug = []
large_refs = []
serde_json = []

[target.'cfg(fuzzing)'.dependencies]
arbitrary = { version = "1.3", features = ["derive"] }
Expand All @@ -57,6 +58,13 @@ proptest = "1.3"
proptest-derive = "0.4"
yrs = "=0.16.5"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(debug)',
'cfg(fuzzing)',
'cfg(loom)',
] }

[[bench]]
harness = false
name = "array_ops_benchmarks"
Expand Down
3 changes: 3 additions & 0 deletions y-octo/src/protocol/awareness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ pub fn write_awareness<W: Write>(buffer: &mut W, clients: &AwarenessStates) -> R
Ok(())
}


// TODO(@darkskygit): impl reader/writer
// awareness state message
#[allow(dead_code)]
#[derive(Debug, PartialEq)]
pub struct AwarenessMessage {
clients: AwarenessStates,
Expand Down

0 comments on commit 1ab631e

Please sign in to comment.