Files
littlefs2/src
Robin Krahl 9680d4f583 Add DynStorageAlloc using FnOnce
Our DynStorage trait uses a &mut dyn FnMut as a callback for
implementing mount_and_then (instead of a FnOnce like Filesystem).  This
is because there is no no-std way to pass a FnOnce in an dyn compatible
trait method.

If alloc is available, this limitation can be avoided by using a
Box<dyn FnOnce>.  This patch adds an alloc feature to the crate and a
DynStorageAlloc trait behind that feature that provides mount_and_then
functions using a boxed FnOnce instead of a reference to an FnMut.
2025-03-04 20:21:53 +01:00
..
2024-08-08 17:58:25 +02:00
2025-03-04 20:21:53 +01:00