make Pod trait thread-safe (#317)

This commit is contained in:
Eduard S. 2025-06-27 15:48:52 +01:00 committed by GitHub
parent b6041508e5
commit 3306f360f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -774,7 +774,7 @@ pub fn normalize_statement(statement: &Statement, self_id: PodId) -> Statement {
Statement::from_args(predicate, args).expect("statement was valid before normalization")
}
pub trait Pod: fmt::Debug + DynClone + Any {
pub trait Pod: fmt::Debug + DynClone + Sync + Send + Any {
fn params(&self) -> &Params;
fn verify(&self) -> Result<(), BackendError>;
fn id(&self) -> PodId;