We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbedf9b commit 11041bcCopy full SHA for 11041bc
crates/syn2mas/src/migration.rs
@@ -161,9 +161,7 @@ pub async fn migrate(
161
// `(MAS user_id, device_id)` mapped to `compat_session` ULID
162
let mut devices_to_compat_sessions: HashMap<(Uuid, CompactString), Uuid> =
163
HashMap::with_capacity(
164
- counts
165
- .devices
166
- .try_into()
+ usize::try_from(counts.devices)
167
.expect("More than usize::MAX devices — unable to handle this many!")
168
// Oversize the capacity, because the count is only an estimate and
169
// we would like to avoid a reallocation
0 commit comments