Skip to content

Commit d45350f

Browse files
authored
Encapsulate migration state in a single structure (#3991)
2 parents b586fe6 + ca651ce commit d45350f

File tree

7 files changed

+148
-157
lines changed

7 files changed

+148
-157
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ features = ["cookie-private", "cookie-key-expansion", "typed-header"]
9191
[workspace.dependencies.base64ct]
9292
version = "1.6.0"
9393

94+
# Packed bitfields
95+
[workspace.dependencies.bitflags]
96+
version = "2.6.0"
97+
9498
# Bytes
9599
[workspace.dependencies.bytes]
96100
version = "1.10.0"

crates/cli/src/commands/syn2mas.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ impl Options {
233233
syn2mas::migrate(
234234
&mut reader,
235235
&mut writer,
236-
&mas_matrix.homeserver,
236+
mas_matrix.homeserver,
237237
&clock,
238238
&mut rng,
239-
&provider_id_mappings,
239+
provider_id_mappings,
240240
)
241241
.await?;
242242

crates/oidc-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ oauth2-types.workspace = true
3939

4040
[dev-dependencies]
4141
assert_matches = "1.5.0"
42-
bitflags = "2.8.0"
42+
bitflags.workspace = true
4343
rand_chacha = "0.3.1"
4444
tokio.workspace = true
4545
wiremock.workspace = true

crates/syn2mas/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ repository.workspace = true
1111

1212
[dependencies]
1313
anyhow.workspace = true
14+
bitflags.workspace = true
1415
camino.workspace = true
1516
figment.workspace = true
1617
serde.workspace = true

0 commit comments

Comments
 (0)