diff --git a/examples/encryptedfs.rs b/examples/encryptedfs.rs index b5b064b0..93770ac2 100644 --- a/examples/encryptedfs.rs +++ b/examples/encryptedfs.rs @@ -27,7 +27,13 @@ async fn main() -> Result<()> { let data_dir = Path::new("/tmp/rencfs_data_test").to_path_buf(); let _ = fs::remove_dir_all(data_dir.to_str().unwrap()); let cipher = Cipher::ChaCha20Poly1305; - let fs = EncryptedFs::new(data_dir.clone(), Box::new(PasswordProviderImpl {}), cipher, false).await?; + let fs = EncryptedFs::new( + data_dir.clone(), + Box::new(PasswordProviderImpl {}), + cipher, + false, + ) + .await?; let file1 = SecretString::from_str("file1").unwrap(); let (fh, attr) = fs diff --git a/src/lib.rs b/src/lib.rs index e53a1939..f140d7ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -304,7 +304,7 @@ pub(crate) mod test_common; pub static UID: LazyLock = LazyLock::new(|| { #[cfg(any(target_os = "linux", target_os = "macos"))] unsafe { - return libc::getuid(); + libc::getuid() } #[cfg(not(any(target_os = "linux", target_os = "macos")))] { @@ -314,7 +314,7 @@ pub static UID: LazyLock = LazyLock::new(|| { pub static GID: LazyLock = LazyLock::new(|| { #[cfg(any(target_os = "linux", target_os = "macos"))] unsafe { - return libc::getgid(); + libc::getgid() } #[cfg(not(any(target_os = "linux", target_os = "macos")))] {