Skip to content

Commit be9d008

Browse files
adrgsclaude
andcommitted
style: fix rustfmt formatting in challenge.rs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 56b1e2b commit be9d008

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/src/certs/challenge.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,14 @@ impl HttpChallengeHandler {
2626

2727
/// Store a challenge token and its key authorization
2828
pub fn set_token(&self, token: &str, key_authorization: &str) {
29-
let mut tokens = self
30-
.tokens
31-
.write()
32-
.expect("challenge token lock poisoned");
29+
let mut tokens = self.tokens.write().expect("challenge token lock poisoned");
3330
tokens.insert(token.to_string(), key_authorization.to_string());
3431
info!("Set HTTP-01 challenge token: {}", token);
3532
}
3633

3734
/// Remove a challenge token after validation
3835
pub fn clear_token(&self, token: &str) {
39-
let mut tokens = self
40-
.tokens
41-
.write()
42-
.expect("challenge token lock poisoned");
36+
let mut tokens = self.tokens.write().expect("challenge token lock poisoned");
4337
tokens.remove(token);
4438
info!("Cleared HTTP-01 challenge token: {}", token);
4539
}

0 commit comments

Comments
 (0)