Skip to content

Commit 823b937

Browse files
committed
fix windows tests and clippy
1 parent e262e8d commit 823b937

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crates/fig_proto/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ fn download_protoc_windows(protoc_version: &str, tmp_folder: &tempfile::TempDir)
169169
));
170170
assert!(copy_command.spawn().unwrap().wait().unwrap().success());
171171

172-
std::env::set_var("PROTOC", out_bin);
172+
unsafe {
173+
std::env::set_var("PROTOC", out_bin);
174+
}
173175
}
174176

175177
fn main() -> Result<()> {

crates/fig_settings/src/sqlite/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ use rusqlite::{
1616
params,
1717
};
1818
use serde_json::Map;
19-
use tracing::{
20-
debug,
21-
info,
22-
};
19+
use tracing::info;
2320

2421
use crate::Result;
2522
use crate::error::DbOpenError;
@@ -100,7 +97,6 @@ impl Db {
10097
let metadata = std::fs::metadata(path)?;
10198
let mut permissions = metadata.permissions();
10299
if permissions.mode() & 0o777 != 0o600 {
103-
debug!(?path, "Setting database file permissions to 0600");
104100
permissions.set_mode(0o600);
105101
std::fs::set_permissions(path, permissions)?;
106102
}

0 commit comments

Comments
 (0)