Skip to content

Commit 6b33766

Browse files
fix(cli): running tests on 32bit platforms (#3666)
1 parent 9d74aea commit 6b33766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-cli/tests/add.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn add_migration_ambiguous() -> anyhow::Result<()> {
1717

1818
#[derive(Debug, PartialEq, Eq)]
1919
struct FileName {
20-
id: usize,
20+
id: u64,
2121
description: String,
2222
suffix: String,
2323
}
@@ -50,7 +50,7 @@ impl From<PathBuf> for FileName {
5050
fn from(path: PathBuf) -> Self {
5151
let filename = path.file_name().unwrap().to_string_lossy();
5252
let (id, rest) = filename.split_once("_").unwrap();
53-
let id: usize = id.parse().unwrap();
53+
let id: u64 = id.parse().unwrap();
5454
let (description, suffix) = rest.split_once(".").unwrap();
5555
Self {
5656
id,

0 commit comments

Comments
 (0)