mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2026-02-04 06:42:11 +00:00
fix: clippy warnings
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user