Skip to content

Commit

Permalink
add CloneNoPersistence trait
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 30, 2024
1 parent 9c6ab8f commit d52db38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/persistence.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
use std::error::Error;
use std::fmt::Debug;

pub trait CloneNoPersistence: Sized {
fn clone_no_persistence(&self) -> Self;
}

#[derive(Debug, Display, Error)]
#[display(inner)]
pub struct PersistenceError(pub Box<dyn Error + Send>);
Expand Down

0 comments on commit d52db38

Please sign in to comment.