Skip to content

Commit 1cca028

Browse files
committed
Move SigV4MessageSigner::new to another impl block
This commit addresses #4504 (comment)
1 parent b548022 commit 1cca028

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

  • aws/rust-runtime/aws-runtime/src/auth

aws/rust-runtime/aws-runtime/src/auth/sigv4.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ pub(crate) struct SigV4MessageSigner<S> {
301301
signing_settings: S,
302302
}
303303

304-
impl<S> SigV4MessageSigner<S> {
304+
impl<S> SigV4MessageSigner<S>
305+
where
306+
S: Clone + Default,
307+
{
305308
pub(crate) fn new(
306309
running_signature: String,
307310
identity: Identity,
@@ -319,12 +322,7 @@ impl<S> SigV4MessageSigner<S> {
319322
signing_settings,
320323
}
321324
}
322-
}
323325

324-
impl<S> SigV4MessageSigner<S>
325-
where
326-
S: Clone + Default,
327-
{
328326
fn signing_params(&self) -> v4::SigningParams<'_, S> {
329327
let builder = v4::SigningParams::builder()
330328
.identity(&self.identity)

0 commit comments

Comments
 (0)