From 29ae152720a4b011e48e4a092af2f918add78d64 Mon Sep 17 00:00:00 2001 From: Radu Marias Date: Thu, 25 Apr 2024 21:04:25 +0300 Subject: [PATCH] add #[allow(unreachable_code)] for is_debug() --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b9afe719..4dd25083 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -811,7 +811,7 @@ dependencies = [ [[package]] name = "rencfs" -version = "0.1.30" +version = "0.1.31" dependencies = [ "base64", "bincode", diff --git a/Cargo.toml b/Cargo.toml index 572dea40..ace5ec3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rencfs" description = "An encrypted file system that mounts with FUSE on Linux. It can be used to create encrypted directories." -version = "0.1.30" +version = "0.1.31" edition = "2021" license = "Apache-2.0" authors = ["Radu Marias "] diff --git a/src/lib.rs b/src/lib.rs index d6e60475..4e2d84d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -114,6 +114,7 @@ use tracing_appender::non_blocking::WorkerGuard; pub mod encryptedfs; pub mod encryptedfs_fuse3; +#[allow(unreachable_code)] pub fn is_debug() -> bool { #[cfg(debug_assertions)] { return true;