fix: clippy warnings

This commit is contained in:
2025-11-26 06:42:29 +02:00
parent b81b87e6db
commit f1a0ab75c3
4 changed files with 10 additions and 5 deletions

View File

@@ -29,6 +29,10 @@ impl CipherContext {
}
}
/// # Errors
///
/// Returns `Err` if parsing the input text or creating the cipher fails,
/// or if the encryption/decryption process encounters an error.
pub fn process(&self) -> CipherResult<String> {
let text_bytes = self.algorithm.parse_text(&self.input_text)?;
let cipher = self.algorithm.new_cipher(&self.key)?;