Skip to content

Commit

Permalink
fixup! Update littlefs2 to v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Oct 24, 2024
1 parent 27dd5a8 commit bc5accb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,12 @@ fn migrate_single(fs: &dyn DynFilesystem, path: &Path) -> Result<(), Error> {
/// Migrate does not itself keep track of whether the migration was performed
///
/// ```rust
///# use littlefs2_core::{fs::Filesystem, const_ram_storage, path};
///# use trussed::types::{LfsResult, LfsStorage};
///# use littlefs2_core::{DynFilesystem, Error, path};
///# use trussed_se050_backend::migrate::migrate_remove_all_dat;
///# const_ram_storage!(Storage, 4096);
///# let mut storage = Storage::new();
///# Filesystem::format(&mut storage);
///# Filesystem::mount_and_then(&mut storage, |fs| {
///# fn test(fs: &dyn DynFilesystem) -> Result<(), Error> {
/// migrate_remove_all_dat(fs, &[path!("secrets"), path!("opcard")])?;
///# Ok(())
///# }).unwrap();
///# Ok(())
///# }
/// ```
pub fn migrate_remove_all_dat(fs: &dyn DynFilesystem, apps: &[&Path]) -> Result<(), Error> {
migrate_single(fs, BACKEND_DIR)?;
Expand Down

0 comments on commit bc5accb

Please sign in to comment.