rust-fatfs icon indicating copy to clipboard operation
rust-fatfs copied to clipboard

Rid into storage trait

Open unizippro opened this issue 2 years ago • 1 comments

This PR seeks to solve #54. This is done by implementing Read, Write, Seek, IoBase for mutable references and removing the IntoStorage trait. This enables one to give a mutable reference to Filesystem::new(..). Which can be freed up when an error occurs.

An example of recovering a corrupted filesystem can be seen in /tests/format.rs#L78.

unizippro avatar Jul 27 '22 12:07 unizippro

ping @rafalh

MathiasKoch avatar Sep 13 '22 04:09 MathiasKoch