Skip to content

Commit 9fd0979

Browse files
committed
changed comment + clippy
1 parent ecedc21 commit 9fd0979

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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

adview-manager/src/manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub struct Options {
8383
pub disabled_sticky: bool,
8484
/// List of validators to query /units-for-slot from
8585
///
86-
/// The is a priority list, the first listed validator has priority over the rest
86+
/// The list is prioritized, i.e. the validator listed on first position will have priority over the second, the second over the third and so on.
8787
pub validators: Vec<ApiUrl>,
8888
}
8989

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)