use proper enum return type

This commit is contained in:
Pierre Dubouilh
2021-10-17 20:49:37 +02:00
parent 283653a775
commit 4d2aee5178
5 changed files with 73 additions and 29 deletions
+16
View File
@@ -1,4 +1,20 @@
use clap::{App, Arg};
use std::net::IpAddr;
pub enum ParsingStatus {
OkEntry,
BadEntry(IpAddr),
}
pub enum Judgment {
Good,
Remand,
Bad(&'static str, IpAddr),
}
pub enum JailStatus {
Remand,
Jailed(IpAddr),
}
pub fn cli() -> App<'static, 'static> {
App::new("ban internets scanner fast 🍶")