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 output (fixed typo)
|
||||||
Octal,
|
Octal,
|
||||||
/// Decimal output
|
/// Decimal output
|
||||||
Decimal,
|
|
||||||
/// Hexadecimal output
|
|
||||||
#[default]
|
#[default]
|
||||||
Hex,
|
Hex,
|
||||||
/// Text output (ASCII)
|
/// Text output (ASCII)
|
||||||
|
|||||||
@ -19,7 +19,6 @@ fn main() -> anyhow::Result<()> {
|
|||||||
match output_format.unwrap_or_default() {
|
match output_format.unwrap_or_default() {
|
||||||
OutputFormat::Binary => println!("{plaintext:064b}"),
|
OutputFormat::Binary => println!("{plaintext:064b}"),
|
||||||
OutputFormat::Octal => println!("{plaintext:022o}"),
|
OutputFormat::Octal => println!("{plaintext:022o}"),
|
||||||
OutputFormat::Decimal => println!("{plaintext}"),
|
|
||||||
OutputFormat::Hex => println!("{plaintext:016X}"),
|
OutputFormat::Hex => println!("{plaintext:016X}"),
|
||||||
OutputFormat::Text => println!("{plaintext}"),
|
OutputFormat::Text => println!("{plaintext}"),
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user