We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16877d9 commit c07b52fCopy full SHA for c07b52f
src/persistence.rs
@@ -100,12 +100,12 @@ pub trait Persisting: Sized {
100
autosave: bool,
101
) -> Result<bool, PersistenceError> {
102
let was_persisted = self.is_persisted();
103
- self.mark_dirty();
104
self.as_mut_persistence().replace(Persistence {
105
- dirty: false,
+ dirty: true,
106
autosave,
107
provider: Box::new(provider),
108
});
+ self.store()?;
109
Ok(was_persisted)
110
}
111
0 commit comments