diff --git a/CHANGELOG.md b/CHANGELOG.md index c02872c1..2a23d56e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.8] - 2023-09-29 +### Changed +- `DPRelation` deref to `Relation` + ## [0.3.7] - 2023-09-28 ### Changed - Objects in `Arc`s are `Sync + Send` for thread safety and matable objects are behind `Mutex`es diff --git a/Cargo.toml b/Cargo.toml index df02f11f..06a68c3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Nicolas Grislain "] name = "qrlew" -version = "0.3.7" +version = "0.3.8" edition = "2021" description = "Sarus Qrlew Engine" documentation = "https://docs.rs/qrlew" diff --git a/src/differential_privacy/mod.rs b/src/differential_privacy/mod.rs index 5a849e81..cc35cf3f 100644 --- a/src/differential_privacy/mod.rs +++ b/src/differential_privacy/mod.rs @@ -92,6 +92,14 @@ impl DPRelation { } } +impl Deref for DPRelation { + type Target = Relation; + + fn deref(&self) -> &Self::Target { + &self.relation + } +} + impl From for (Relation, PrivateQuery) { fn from(value: DPRelation) -> Self { (value.relation, value.private_query)