Skip to content

Commit 178c7b0

Browse files
committed
edition 2024
1 parent e6f37ba commit 178c7b0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "myloginrs"
3-
version = "0.1.6"
3+
version = "0.2.0"
44
authors = ["James Cortese <rjcortese@gmail.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
rust-version = "1.89"
77
description = "Read and parse MySQL's .mylogin.cnf file."
88
readme = "README.md"

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ mod tests {
218218

219219
#[test]
220220
fn test_get_login_path_file_from_env() {
221-
env::set_var("MYSQL_LOGIN_FILE", "my_file_path");
221+
unsafe {
222+
env::set_var("MYSQL_LOGIN_FILE", "my_file_path");
223+
}
222224
let path = get_login_path_file();
223225
assert_eq!(PathBuf::from("my_file_path"), path);
224226
}

0 commit comments

Comments
 (0)