Skip to content

Commit 4ac85d1

Browse files
authored
address redundant_pub_crate lint (#636)
1 parent e48254a commit 4ac85d1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/disk_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct DiskUsage {
2323
///
2424
/// This is a best effort attempt to estimate the disk usage of a snapshot and
2525
/// validate the snapshot will fit in the configured parameters.
26-
pub(crate) fn check(
26+
pub fn check(
2727
image_path: &Path,
2828
memory_ranges: &[Range<u64>],
2929
max_disk_usage: Option<NonZeroU64>,

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![deny(clippy::panic)]
88
#![deny(clippy::manual_assert)]
99
#![deny(clippy::indexing_slicing)]
10+
#![deny(clippy::redundant_pub_crate)]
1011
#![deny(clippy::if_then_some_else_none)]
1112
#![deny(clippy::shadow_unrelated)]
1213
#![deny(clippy::std_instead_of_core)]

src/snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl FmtDebug for Error {
5656
}
5757
}
5858

59-
pub(crate) type Result<T> = core::result::Result<T, Error>;
59+
pub type Result<T> = core::result::Result<T, Error>;
6060

6161
#[derive(Debug, Clone, ValueEnum)]
6262
pub enum Source {

0 commit comments

Comments
 (0)