fix(cli): running tests on 32bit platforms (#3666)
This commit is contained in:
parent
9d74aeae52
commit
6b337668de
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ fn add_migration_ambiguous() -> anyhow::Result<()> {
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
struct FileName {
|
struct FileName {
|
||||||
id: usize,
|
id: u64,
|
||||||
description: String,
|
description: String,
|
||||||
suffix: String,
|
suffix: String,
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ impl From<PathBuf> for FileName {
|
||||||
fn from(path: PathBuf) -> Self {
|
fn from(path: PathBuf) -> Self {
|
||||||
let filename = path.file_name().unwrap().to_string_lossy();
|
let filename = path.file_name().unwrap().to_string_lossy();
|
||||||
let (id, rest) = filename.split_once("_").unwrap();
|
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();
|
let (description, suffix) = rest.split_once(".").unwrap();
|
||||||
Self {
|
Self {
|
||||||
id,
|
id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue