diff --git a/Cargo.lock b/Cargo.lock index a4a28c4..ab5729d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -141,7 +141,7 @@ dependencies = [ [[package]] name = "swaybar_info" -version = "0.1.0" +version = "0.1.1" dependencies = [ "chrono", "regex", diff --git a/Cargo.toml b/Cargo.toml index 444d6aa..5623fe0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "swaybar_info" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "Provides swaybar with info to be displayed" license = "MIT" diff --git a/src/builtin.rs b/src/builtin.rs index c7f0919..0f53c6a 100644 --- a/src/builtin.rs +++ b/src/builtin.rs @@ -82,6 +82,7 @@ impl Default for BattInfo { } impl BattInfo { + #[allow(dead_code)] pub fn is_error_state(&self) -> bool { self.acpi_error } diff --git a/src/swaybar_object.rs b/src/swaybar_object.rs index 4f5e7d6..4da5e50 100644 --- a/src/swaybar_object.rs +++ b/src/swaybar_object.rs @@ -166,6 +166,7 @@ impl SwaybarObject { self.color = Some("#ff2222ff".to_owned()); } + #[allow(dead_code)] pub fn set_name(&mut self, name: Option) { self.name = name; } @@ -192,6 +193,7 @@ impl SwaybarArray { self.objects.is_empty() } + #[allow(dead_code)] pub fn get_by_name(&self, name: &str) -> Option<&SwaybarObject> { if let Some(idx) = self.objects_idx_map.get(name) { return Some(&self.objects[*idx]);