Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Aug 26, 2024
1 parent 25c8fc2 commit 2eacc16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion examples/encryptedfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ pub(crate) mod test_common;
pub static UID: LazyLock<u32> = 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")))]
{
Expand All @@ -314,7 +314,7 @@ pub static UID: LazyLock<u32> = LazyLock::new(|| {
pub static GID: LazyLock<u32> = 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")))]
{
Expand Down

0 comments on commit 2eacc16

Please sign in to comment.