Skip to content

Commit

Permalink
Move traits to where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Oct 4, 2022
1 parent 020642a commit b2e9df5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion transports/noise/src/lib.rs
Expand Up @@ -90,7 +90,10 @@ pub struct NoiseConfig<P, C: Zeroize, R = ()> {
prologue: Vec<u8>,
}

impl<H, C: Zeroize, R> NoiseConfig<H, C, R> {
impl<H, C, R> NoiseConfig<H, C, R>
where
C: Zeroize,
{
/// Turn the `NoiseConfig` into an authenticated upgrade for use
/// with a `Swarm`.
pub fn into_authenticated(self) -> NoiseAuthenticated<H, C, R> {
Expand Down

0 comments on commit b2e9df5

Please sign in to comment.