Skip to content

Commit 1408449

Browse files
Make mechanisms module private
This patch makes the mechanisms module private. The mechanism implementation can still be accessed using the Mechanism enum. This leads to a clenaer public API and triggers a compiler warning if the mapping between the Mechanism enum and the mechanism implementations is wrong (as the implementation would then be unused).
1 parent 7f3d000 commit 1408449

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6565
- Removed the `unsafe` keyword for the `Store` trait.
6666
- Removed the `unsafe` keyword for the `Platform` trait.
6767
- Replaced the mechanism RPC traits in `service` with a single `MechanismImpl` trait.
68+
- Made the `mechanisms` module private. Mechanism implementation can still be accessed via the `Mechanism` enum.
6869

6970
### Fixed
7071

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub mod error;
3232
pub mod interrupt;
3333
pub mod key;
3434
#[cfg(feature = "crypto-client")]
35-
pub mod mechanisms;
35+
mod mechanisms;
3636
pub mod pipe;
3737
pub mod platform;
3838
#[cfg(feature = "serde-extensions")]

0 commit comments

Comments
 (0)