From 06083f6c35ff893562aa96834fabaeb56b51f387 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Sat, 4 Jan 2025 18:01:19 +0100 Subject: [PATCH] fix(cli): running tests on 32bit platforms --- sqlx-cli/tests/add.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlx-cli/tests/add.rs b/sqlx-cli/tests/add.rs index 523ce4767e..1d5ed7c7dd 100644 --- a/sqlx-cli/tests/add.rs +++ b/sqlx-cli/tests/add.rs @@ -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 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,