mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 11:16:45 -04:00
Fix some clippy::pedantic warnings
This commit is contained in:
parent
d3152cb38d
commit
127eab4863
16 changed files with 161 additions and 166 deletions
|
@ -25,7 +25,7 @@ use zbus_xml::{Method, Node, Property};
|
|||
use crate::platform::PlatformConfig;
|
||||
|
||||
thread_local! {
|
||||
static TEST: RefCell<Option<Rc<Test>>> = RefCell::new(None);
|
||||
static TEST: RefCell<Option<Rc<Test>>> = const { RefCell::new(None) };
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
|
@ -233,7 +233,7 @@ impl<'a> InterfaceIntrospection<'a> {
|
|||
|
||||
fn collect_methods(&self) -> HashMap<String, &Method<'_>> {
|
||||
let mut map = HashMap::new();
|
||||
for method in self.interface.methods().iter() {
|
||||
for method in self.interface.methods() {
|
||||
map.insert(method.name().to_string(), method);
|
||||
}
|
||||
map
|
||||
|
@ -241,7 +241,7 @@ impl<'a> InterfaceIntrospection<'a> {
|
|||
|
||||
fn collect_properties(&self) -> HashMap<String, &Property<'_>> {
|
||||
let mut map = HashMap::new();
|
||||
for prop in self.interface.properties().iter() {
|
||||
for prop in self.interface.properties() {
|
||||
map.insert(prop.name().to_string(), prop);
|
||||
}
|
||||
map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue