Skip to content

Commit

Permalink
Use all features for clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Svagelj <tin.svagelj@live.com>
  • Loading branch information
Caellian committed Sep 16, 2023
1 parent 68b7534 commit 5c2fc85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rustup update nightly && rustup default nightly
- run: rustup component add clippy
- name: Run clippy
run: cargo clippy
run: cargo clippy --all-features
4 changes: 2 additions & 2 deletions src/refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl<T: ?Sized> Clone for SyncContiguousEntryRef<T> {
SyncContiguousEntryRef {
inner: self.inner.clone(),
#[cfg(feature = "ptr_metadata")]
metadata: self.metadata.clone(),
metadata: self.metadata,
#[cfg(not(feature = "ptr_metadata"))]
_phantom: PhantomData,
}
Expand Down Expand Up @@ -500,7 +500,7 @@ impl<T: ?Sized> Clone for ContiguousEntryRef<T> {
ContiguousEntryRef {
inner: self.inner.clone(),
#[cfg(feature = "ptr_metadata")]
metadata: self.metadata.clone(),
metadata: self.metadata,
#[cfg(not(feature = "ptr_metadata"))]
_phantom: PhantomData,
}
Expand Down
2 changes: 1 addition & 1 deletion src/tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use core::{alloc::Layout, cmp::Ordering};

#[cfg(feature = "no_std")]
use crate::types::Vec;
use crate::types::{vec, Vec};
use crate::{error::ContiguousMemoryError, range::ByteRange};

/// A structure that keeps track of unused regions of memory within provided
Expand Down
1 change: 1 addition & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mod nostd_imports {

pub use alloc::alloc as allocator;

pub use ::alloc::vec;
pub use ::alloc::vec::Vec;

pub use ::alloc::rc::Rc;
Expand Down

0 comments on commit 5c2fc85

Please sign in to comment.