fix: make cargo check happy

This commit is contained in:
bestgopher
2024-12-04 20:47:28 +08:00
parent 3e56641b0a
commit 1dae53d9b2
13 changed files with 22 additions and 33 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ fn decryp<T: aes_gcm::aead::Aead>(stream: T, nonce: &[u8], data: &[u8]) -> Resul
.map_err(Error::ErrDecryptFailed)
}
#[cfg(all(not(test), not(feature = "crypto")))]
#[cfg(not(any(test, feature = "crypto")))]
pub fn decrypt_data(_password: &[u8], data: &[u8]) -> Result<Vec<u8>, crate::Error> {
Ok(data.to_vec())
}
+1 -1
View File
@@ -55,7 +55,7 @@ fn encrypt<T: aes_gcm::aead::Aead>(
Ok(ciphertext)
}
#[cfg(all(not(test), not(feature = "crypto")))]
#[cfg(not(any(test, feature = "crypto")))]
pub fn encrypt_data(_password: &[u8], data: &[u8]) -> Result<Vec<u8>, crate::Error> {
Ok(data.to_vec())
}