Skip to content

Commit

Permalink
fix: apply suspicious_open_options from clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee authored and joshuef committed Feb 12, 2024
1 parent 25e8385 commit 7f6dcc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sn_node_manager/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub fn get_node_registry_path() -> Result<PathBuf> {
std::fs::OpenOptions::new()
.write(true)
.create(true)
.truncate(true) // Do not append to the file if it already exists.
.open(node_registry_path.clone())?;
// Set the permissions of /var/safenode-manager/node_registry.json to rwxrwxrwx. The
// `status` command updates the registry with the latest information it has on the
Expand Down

0 comments on commit 7f6dcc5

Please sign in to comment.