Skip to content

Commit

Permalink
Clippy fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltratt committed Sep 9, 2024
1 parent ca2379c commit b78a467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ fn check_assigned<T>(
/// * `Account::dump`
/// * `Account::secure_restoreable`
/// * `AccountDump`
///
/// These functions are vital to the security guarantees pizauth makes when reloading/restoring
/// configurations.
#[derive(Clone, Debug)]
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ fn cache_path() -> PathBuf {

let md = |p: &PathBuf| {
if !p.exists() {
fs::create_dir(&p).unwrap_or_else(|e| fatal(&format!("Can't create cache dir: {e}")));
fs::create_dir(p).unwrap_or_else(|e| fatal(&format!("Can't create cache dir: {e}")));
}
fs::set_permissions(&p, PermissionsExt::from_mode(0o700)).unwrap_or_else(|_| {
fs::set_permissions(p, PermissionsExt::from_mode(0o700)).unwrap_or_else(|_| {
fatal(&format!(
"Can't set permissions for {} to 0700 (octal)",
p.to_str()
Expand Down

0 comments on commit b78a467

Please sign in to comment.