Skip to content

Commit f09a42e

Browse files
committed
Fix lints
1 parent 992c0c1 commit f09a42e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ deranged-macros = { version = "=0.2.0", path = "deranged-macros" }
2828
ambiguous-glob-reexports = "deny"
2929
clashing-extern-declarations = "deny"
3030
const-item-mutation = "deny"
31+
dangling-pointers-from-temporaries = "deny"
3132
deref-nullptr = "deny"
3233
drop-bounds = "deny"
3334
future-incompatible = "deny"
@@ -44,7 +45,6 @@ non-ascii-idents = "deny"
4445
opaque-hidden-inferred-bound = "deny"
4546
overlapping-range-endpoints = "deny"
4647
suspicious-double-ref-op = "deny"
47-
temporary-cstring-as-ptr = "deny"
4848
unconditional-recursion = "deny"
4949
unnameable-test-items = "deny"
5050
unsafe-op-in-unsafe-fn = "deny"

deranged/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#[cfg(feature = "std")]
88
extern crate std;
99

10-
#[cfg(feature = "alloc")]
10+
#[cfg(all(feature = "alloc", any(feature = "serde", feature = "quickcheck")))]
1111
extern crate alloc;
1212

1313
#[cfg(test)]
@@ -1345,7 +1345,7 @@ macro_rules! impl_ranged {
13451345
#[cfg(feature = "alloc")] {
13461346
&alloc::format!("an integer in the range {}..={}", MIN, MAX).as_ref()
13471347
},
1348-
#[cfg(not(feature = "std"))] {
1348+
#[cfg(not(feature = "alloc"))] {
13491349
&"an integer in the valid range"
13501350
}
13511351
))

0 commit comments

Comments
 (0)