mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-23 22:29:01 -05:00
minor improvements
This commit is contained in:
@@ -141,7 +141,7 @@ pub fn from_char(ch: char) -> Self {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pretty_print(self, repr: DataRepr) -> String {
|
||||
fn pretty_print(self, repr: DataRepr) -> String {
|
||||
match repr {
|
||||
DataRepr::Packets => String::new(),
|
||||
DataRepr::Bytes => format!("{}B", self.get_char()),
|
||||
|
||||
@@ -674,7 +674,6 @@ pub fn showing_results_translation(
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn color_gradients_translation(language: Language) -> &'static str {
|
||||
match language {
|
||||
Language::EN => "Apply color gradients",
|
||||
|
||||
@@ -146,7 +146,6 @@ pub fn data_exceeded_translation(language: Language) -> &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn bits_exceeded_translation(language: Language) -> &'static str {
|
||||
match language {
|
||||
Language::EN => "Bits threshold exceeded",
|
||||
@@ -161,7 +160,6 @@ pub fn bits_exceeded_translation(language: Language) -> &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn bits_translation(language: Language) -> &'static str {
|
||||
match language {
|
||||
Language::EN | Language::IT | Language::NL | Language::DE | Language::FR => "bits",
|
||||
|
||||
Reference in New Issue
Block a user