Skip to content

Commit

Permalink
fix(cli): running tests on 32bit platforms (#3666)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini authored Jan 7, 2025
1 parent 9d74aea commit 6b33766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlx-cli/tests/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn add_migration_ambiguous() -> anyhow::Result<()> {

#[derive(Debug, PartialEq, Eq)]
struct FileName {
id: usize,
id: u64,
description: String,
suffix: String,
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6b33766

Please sign in to comment.