Skip to content

Commit

Permalink
sdk-base: enable the "rand" feature on ruma there too
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Jul 25, 2024
1 parent c1fda3a commit 73759fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ matrix-sdk-crypto = { workspace = true, optional = true }
matrix-sdk-store-encryption = { workspace = true }
matrix-sdk-test = { workspace = true, optional = true }
once_cell = { workspace = true }
ruma = { workspace = true, features = ["canonical-json", "unstable-msc3381", "unstable-msc2867"] }
ruma = { workspace = true, features = ["canonical-json", "unstable-msc3381", "unstable-msc2867", "rand"] }
serde = { workspace = true, features = ["rc"] }
serde_json = { workspace = true }
tokio = { workspace = true }
Expand Down
3 changes: 0 additions & 3 deletions crates/matrix-sdk-base/src/store/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1269,9 +1269,6 @@ pub struct ChildTransactionId(OwnedTransactionId);
impl ChildTransactionId {
/// Returns a new [`ChildTransactionId`].
#[allow(clippy::new_without_default)]
// Should really be ruma/random, but no way to guard against a dependency's feature being
// enabled.
#[cfg(any(not(target_arch = "wasm32"), feature = "js"))]
pub fn new() -> Self {
Self(TransactionId::new())
}
Expand Down

0 comments on commit 73759fc

Please sign in to comment.