mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2025-12-20 11:04:38 +00:00
chore: remove decimal format
This commit is contained in:
parent
46a5b90d34
commit
dc243a8731
@ -67,8 +67,6 @@ pub enum OutputFormat {
|
||||
/// Octal output (fixed typo)
|
||||
Octal,
|
||||
/// Decimal output
|
||||
Decimal,
|
||||
/// Hexadecimal output
|
||||
#[default]
|
||||
Hex,
|
||||
/// Text output (ASCII)
|
||||
|
||||
@ -19,7 +19,6 @@ fn main() -> anyhow::Result<()> {
|
||||
match output_format.unwrap_or_default() {
|
||||
OutputFormat::Binary => println!("{plaintext:064b}"),
|
||||
OutputFormat::Octal => println!("{plaintext:022o}"),
|
||||
OutputFormat::Decimal => println!("{plaintext}"),
|
||||
OutputFormat::Hex => println!("{plaintext:016X}"),
|
||||
OutputFormat::Text => println!("{plaintext}"),
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user