]> git.seodisparate.com - swaybar_info/commitdiff
Bump version to 0.1.1, fix warnings
authorStephen Seo <seo.disparate@gmail.com>
Thu, 11 Aug 2022 02:51:12 +0000 (11:51 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 11 Aug 2022 02:51:12 +0000 (11:51 +0900)
Cargo.lock
Cargo.toml
src/builtin.rs
src/swaybar_object.rs

index a4a28c448cd5bc7fb652463be3550642d401af57..ab5729dde3d210edf8af0a194277f4c856cd5e43 100644 (file)
@@ -141,7 +141,7 @@ dependencies = [
 
 [[package]]
 name = "swaybar_info"
-version = "0.1.0"
+version = "0.1.1"
 dependencies = [
  "chrono",
  "regex",
index 444d6aabee1fba21bd28f2f00489f13cbaede97b..5623fe093af91629df10dbc0724dfe91c2f2cef5 100644 (file)
@@ -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"
index c7f09191b61f5e030de0c8daac6da4b62dc3d8fb..0f53c6a5b09b4a48e65031902b90b9db1f99b144 100644 (file)
@@ -82,6 +82,7 @@ impl Default for BattInfo {
 }
 
 impl BattInfo {
+    #[allow(dead_code)]
     pub fn is_error_state(&self) -> bool {
         self.acpi_error
     }
index 4f5e7d6838b662b30bef4918af1b799175b7a4fd..4da5e50379f6f0dc188ef87b9cb19ee528dccf42 100644 (file)
@@ -166,6 +166,7 @@ impl SwaybarObject {
         self.color = Some("#ff2222ff".to_owned());
     }
 
+    #[allow(dead_code)]
     pub fn set_name(&mut self, name: Option<String>) {
         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]);