Skip to content

Commit 0a2d024

Browse files
committed
Fix build warning
1 parent e5e60bf commit 0a2d024

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/component.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ pub(crate) fn component_updatedirname(component: &dyn Component) -> PathBuf {
112112

113113
/// Returns the path to the payload directory for an available update for
114114
/// a component.
115+
#[allow(dead_code)]
115116
#[cfg(any(
116117
target_arch = "x86_64",
117118
target_arch = "aarch64",

src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub(crate) fn getenv_utf8(n: &str) -> Result<Option<String>> {
1919
}
2020
}
2121

22+
#[allow(dead_code)]
2223
pub(crate) fn filenames(dir: &openat::Dir) -> Result<HashSet<String>> {
2324
let mut ret = HashSet::new();
2425
for entry in dir.list_dir(".")? {

0 commit comments

Comments
 (0)