Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Apr 15, 2024
1 parent 91732b7 commit dd6ab17
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions zone-setup/src/bin/zone-setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async fn do_run() -> Result<(), CmdError> {
)
.arg(
arg!(-a --allow <String> "Allowed IPv6 range")
.num_args(0..=1)
.num_args(0..=1)
),
)
.get_matches();
Expand Down Expand Up @@ -276,12 +276,9 @@ fn generate_chrony_config(
})?;

if let Some(allow) = allow {
contents = contents.replace(
"@ALLOW@",
&allow.to_string(),
);
contents = contents.replace("@ALLOW@", &allow.to_string());
}

let new_config = if *is_boundary {
for s in servers {
let str_line =
Expand Down

0 comments on commit dd6ab17

Please sign in to comment.