Skip to content

Commit

Permalink
add #[allow(unreachable_code)] for is_debug()
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Apr 25, 2024
1 parent baf87c9 commit 29ae152
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 29ae152

Please sign in to comment.