Skip to content

Commit 388987e

Browse files
committed
fix:polaris-rust clippy
1 parent d00342b commit 388987e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/filter/configcrypto/crypto.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct ConfigEntry {
5050
}
5151

5252
/// Cryptor
53-
trait Cryptor
53+
pub trait Cryptor
5454
where
5555
Self: Send + Sync,
5656
{
@@ -301,7 +301,7 @@ impl RSACryptor {
301301

302302
type Aes256Cbc = Cbc<Aes128, Pkcs7>;
303303

304-
struct AESCryptor {}
304+
pub struct AESCryptor {}
305305

306306
impl Cryptor for AESCryptor {
307307
fn encrypt(&self, plaintext: String, key: String) -> Result<String, PolarisError> {
@@ -347,7 +347,7 @@ impl Cryptor for AESCryptor {
347347
}
348348

349349
mod tests {
350-
350+
use crate::plugins::filter::configcrypto::crypto::{AESCryptor, Cryptor, RSACryptor};
351351

352352
#[test]
353353
fn test_rsa_encrypt_decrypt() {

0 commit comments

Comments
 (0)