Skip to content

Commit

Permalink
fix example doc
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed May 5, 2024
1 parent 6a47114 commit 77b420a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
//! let _ = fs::remove_dir_all(tmp_dir.to_str().unwrap());
//! let password = SecretString::from_str("password").unwrap();
//! let cipher = Cipher::ChaCha20;
//! let mut fs = EncryptedFs::new(data_dir, tmp_dir, Box::new(PasswordProviderImpl{}), cipher ).await?;
//! let mut fs = EncryptedFs::new(data_dir.clone(), tmp_dir.clone(), Box::new(PasswordProviderImpl{}), cipher ).await?;
//!
//! let file1 = SecretString::from_str("file1").unwrap();
//! let (fh, attr) = fs.create_nod(ROOT_INODE, &file1, file_attr(), false, true).await?;
Expand All @@ -131,6 +131,7 @@
//! fs.release(fh).await?;
//! assert_eq!(data, String::from_utf8(buf)?);
//! fs::remove_dir_all(data_dir)?;
//! fs::remove_dir_all(tmp_dir)?;
//!
//! Ok(())
//! }
Expand Down

0 comments on commit 77b420a

Please sign in to comment.