Skip to content

Commit c480114

Browse files
author
Jakub Konka
committed
Fix formatting and lints
1 parent af45871 commit c480114

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

crates/notary/client/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ pub struct NotaryClient {
138138
/// in notary server.
139139
#[builder(setter(into, strip_option), default)]
140140
api_key: Option<String>,
141-
/// JWT token used to callnotary server endpoints if JWT authorization is enabled
142-
/// in notary server.
141+
/// JWT token used to callnotary server endpoints if JWT authorization is
142+
/// enabled in notary server.
143143
#[builder(setter(into, strip_option), default)]
144144
jwt: Option<String>,
145145
/// The duration of notarization request timeout in seconds.

crates/notary/server/src/config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl NotaryServerProperties {
6161
public_key_path,
6262
claims,
6363
}) => AuthorizationModeProperties::Jwt(JwtAuthorizationProperties {
64-
algorithm: algorithm.clone(),
64+
algorithm: *algorithm,
6565
public_key_path: prepend_file_path(public_key_path, &parent_dir)?,
6666
claims: claims.clone(),
6767
}),
@@ -178,7 +178,8 @@ impl AuthorizationModeProperties {
178178
pub struct JwtAuthorizationProperties {
179179
/// Algorithm used for signing the JWT
180180
pub algorithm: Algorithm,
181-
/// File path to JWT public key (in PEM format) for verifying token signatures
181+
/// File path to JWT public key (in PEM format) for verifying token
182+
/// signatures
182183
pub public_key_path: String,
183184
/// Set of required JWT claims
184185
#[serde(default)]

0 commit comments

Comments
 (0)