Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/stylist-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ wasm-bindgen-test = "0.3.33"
[features]
parser = ["dep:nom"]
__proc_macro_workaround = []

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(releasing)',
'cfg(documenting)',
] }
6 changes: 6 additions & 0 deletions packages/stylist-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ stylist-core = { path = "../stylist-core", version = "0.14", features = [

[dev-dependencies]
env_logger = "0.10.0"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(releasing)',
'cfg(documenting)',
] }
6 changes: 6 additions & 0 deletions packages/stylist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ hydration = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "documenting"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(releasing)',
'cfg(documenting)',
] }
1 change: 0 additions & 1 deletion packages/stylist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#![deny(clippy::all)]
#![deny(clippy::cognitive_complexity)]
#![cfg_attr(documenting, feature(doc_cfg))]
#![cfg_attr(documenting, feature(doc_auto_cfg))]
#![cfg_attr(any(releasing, not(debug_assertions)), deny(dead_code, unused_imports))]

//! Stylist is a CSS-in-Rust styling solution for WebAssembly Applications.
Expand Down
4 changes: 2 additions & 2 deletions packages/stylist/src/manager/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ mod tests {
let reg = mgr.get_registry();
let reg = reg.borrow_mut();

assert!(reg.styles.get(style.key()).is_some());
assert!(reg.styles.contains_key(style.key()));
}

style.unregister();
Expand All @@ -92,7 +92,7 @@ mod tests {
let reg = mgr.get_registry();
let reg = reg.borrow_mut();

assert!(reg.styles.get(style.key()).is_none());
assert!(!reg.styles.contains_key(style.key()));
}
}
}