Skip to content

Commit 61ba486

Browse files
committed
util: Make GitHubTokenEncryption::for_testing() available in debug builds
1 parent b492daa commit 61ba486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/gh_token_encryption.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl GitHubTokenEncryption {
1818

1919
/// Creates a new [GitHubTokenEncryption] instance with a cipher for testing
2020
/// purposes.
21-
#[cfg(test)]
21+
#[cfg(any(test, debug_assertions))]
2222
pub fn for_testing() -> Self {
2323
let test_key = b"test_key_32_bytes_long_for_tests";
2424
Self::new(Aes256Gcm::new(Key::<Aes256Gcm>::from_slice(test_key)))

0 commit comments

Comments
 (0)