fix(cli): running tests on 32bit platforms (#3666)

This commit is contained in:
Paolo Barbolini 2025-01-07 01:00:18 +01:00 committed by GitHub
parent 9d74aeae52
commit 6b337668de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ fn add_migration_ambiguous() -> anyhow::Result<()> {
#[derive(Debug, PartialEq, Eq)]
struct FileName {
id: usize,
id: u64,
description: String,
suffix: String,
}
@ -50,7 +50,7 @@ impl From<PathBuf> for FileName {
fn from(path: PathBuf) -> Self {
let filename = path.file_name().unwrap().to_string_lossy();
let (id, rest) = filename.split_once("_").unwrap();
let id: usize = id.parse().unwrap();
let id: u64 = id.parse().unwrap();
let (description, suffix) = rest.split_once(".").unwrap();
Self {
id,