summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/devices/file/bedrock_file_path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/file/bedrock_file_path.rs b/src/devices/file/bedrock_file_path.rs
index 1c702de..30aa803 100644
--- a/src/devices/file/bedrock_file_path.rs
+++ b/src/devices/file/bedrock_file_path.rs
@@ -174,7 +174,7 @@ fn path_to_bytes(path: &Path) -> Option<Vec<u8>> {
/// Returns true if a relative path can be safely attached to a base without
/// breaking out of the sandbox.
-fn assert_path_is_safe(relative: &Path, base: &Path) -> Option<()> {
+fn assert_path_is_safe(relative: &Path, _base: &Path) -> Option<()> {
#[cfg(target_family = "unix")] {
// Error if path contains special components.
for component in relative.components() {
@@ -189,7 +189,7 @@ fn assert_path_is_safe(relative: &Path, base: &Path) -> Option<()> {
// contain the prefix and root element. If the base path is not
// empty, the relative path must not contain these elements else
// they will override the base path when joined.
- if base.components().count() != 0 {
+ if _base.components().count() != 0 {
for component in relative.components() {
match component {
Component::Normal(_) => continue,