Skip to content

Commit 66fa295

Browse files
committed
lint
1 parent 69afbae commit 66fa295

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

parquet/src/encryption/encrypt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl FileEncryptor {
361361
Some(column_key) => Ok(Box::new(RingGcmBlockEncryptor::new(column_key.key())?)),
362362
}
363363
}
364-
364+
365365
/// Get encryption algorithm for the plaintext footer
366366
pub(crate) fn get_footer_encryptor_for_plaintext(&self) -> Result<Option<EncryptionAlgorithm>> {
367367
if !self.properties.encrypt_footer() {

parquet/src/file/metadata/reader.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -975,11 +975,10 @@ impl ParquetMetaDataReader {
975975
file_decryption_properties,
976976
)?);
977977
if file_decryption_properties.check_plaintext_footer_integrity() {
978-
let mut cpy_buf = buf.to_vec();
979978
file_decryptor
980979
.clone()
981980
.unwrap()
982-
.verify_plaintext_footer_signature(cpy_buf.as_mut())?;
981+
.verify_plaintext_footer_signature(buf.to_vec().as_mut())?;
983982
}
984983
}
985984

parquet/src/file/metadata/writer.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
#[cfg(feature = "encryption")]
1919
use crate::encryption::{
20-
encrypt::{encrypt_object, encrypt_object_to_vec, write_signed_plaintext_object, FileEncryptor},
20+
encrypt::{
21+
encrypt_object, encrypt_object_to_vec, write_signed_plaintext_object, FileEncryptor,
22+
},
2123
modules::{create_footer_aad, create_module_aad, ModuleType},
2224
};
2325
#[cfg(feature = "encryption")]

0 commit comments

Comments
 (0)