Skip to content

Commit 04686a6

Browse files
committed
Use url_safe base64 encoding
1 parent 8ba1033 commit 04686a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-core/src/testing/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::time::Duration;
33

44
use futures_core::future::BoxFuture;
55

6-
use base64::{engine::general_purpose::STANDARD, Engine as _};
6+
use base64::{engine::general_purpose::URL_SAFE, Engine as _};
77
pub use fixtures::FixtureSnapshot;
88
use sha2::{Digest, Sha512};
99

@@ -41,7 +41,7 @@ pub trait TestSupport: Database {
4141
let mut hasher = Sha512::new();
4242
hasher.update(args.test_path.as_bytes());
4343
let hash = hasher.finalize();
44-
let hash = STANDARD.encode(&hash[..39]);
44+
let hash = URL_SAFE.encode(&hash[..39]);
4545
let db_name = format!("_sqlx_test_{}", hash);
4646
debug_assert!(db_name.len() == 63);
4747
db_name

0 commit comments

Comments
 (0)