Skip to content

Commit

Permalink
chore: fixed warning when building with no-default-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Nov 28, 2024
1 parent cf9504a commit 707b8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/shadowsocks/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,15 @@ fn make_derived_key(method: CipherKind, password: &str, enc_key: &mut [u8]) -> R
if #[cfg(any(feature = "stream-cipher", feature = "aead-cipher"))] {
let _ = method;
openssl_bytes_to_key(password.as_bytes(), enc_key);

Ok(())
} else {
// No default implementation.
let _ = password;
let _ = enc_key;
unreachable!("{method} don't know how to make a derived key");
}
}

Ok(())
}

/// Check if method supports Extended Identity Header
Expand Down

0 comments on commit 707b8bc

Please sign in to comment.