We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f37ba commit 178c7b0Copy full SHA for 178c7b0
2 files changed
Cargo.toml
@@ -1,8 +1,8 @@
1
[package]
2
name = "myloginrs"
3
-version = "0.1.6"
+version = "0.2.0"
4
authors = ["James Cortese <rjcortese@gmail.com>"]
5
-edition = "2021"
+edition = "2024"
6
rust-version = "1.89"
7
description = "Read and parse MySQL's .mylogin.cnf file."
8
readme = "README.md"
src/lib.rs
@@ -218,7 +218,9 @@ mod tests {
218
219
#[test]
220
fn test_get_login_path_file_from_env() {
221
- env::set_var("MYSQL_LOGIN_FILE", "my_file_path");
+ unsafe {
222
+ env::set_var("MYSQL_LOGIN_FILE", "my_file_path");
223
+ }
224
let path = get_login_path_file();
225
assert_eq!(PathBuf::from("my_file_path"), path);
226
}
0 commit comments