Skip to content

Commit a4d1eaf

Browse files
committed
cargo fmt + clippy
1 parent c6e4233 commit a4d1eaf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

adapter/src/ethereum/ewt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl Token {
154154

155155
let payload = Payload::base64_decode(payload_encoded)?;
156156

157-
let decoded_signature = base64::decode_config(&signature_encoded, base64::URL_SAFE_NO_PAD)
157+
let decoded_signature = base64::decode_config(signature_encoded, base64::URL_SAFE_NO_PAD)
158158
.map_err(EwtVerifyError::SignatureDecoding)?;
159159

160160
// if it returns the same slice, then there was no suffix

sentry/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4242
.help("the adapter for authentication and signing")
4343
.required(true)
4444
.default_value("ethereum")
45-
.possible_values(&["ethereum", "dummy"])
45+
.possible_values(["ethereum", "dummy"])
4646
.takes_value(true),
4747
)
4848
.arg(

validator_worker/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn main() -> Result<(), Box<dyn Error>> {
2929
.help("the adapter for authentication and signing")
3030
.required(true)
3131
.default_value("ethereum")
32-
.possible_values(&["ethereum", "dummy"])
32+
.possible_values(["ethereum", "dummy"])
3333
.takes_value(true),
3434
)
3535
.arg(

0 commit comments

Comments
 (0)