Fix the various lints (#1124)

This commit is contained in:
Micah
2025-10-10 13:00:56 -07:00
committed by GitHub
parent beb497878b
commit f3c423d77d
8 changed files with 24 additions and 83 deletions

View File

@@ -221,7 +221,7 @@ pub enum InstigatingSource {
ProjectNode(
#[serde(serialize_with = "path_serializer::serialize_absolute")] PathBuf,
String,
ProjectNode,
Box<ProjectNode>,
Option<String>,
),
}

View File

@@ -73,7 +73,7 @@ impl RojoTree {
self.inner.root_ref()
}
pub fn get_instance(&self, id: Ref) -> Option<InstanceWithMeta> {
pub fn get_instance(&self, id: Ref) -> Option<InstanceWithMeta<'_>> {
if let Some(instance) = self.inner.get_by_ref(id) {
let metadata = self.metadata_map.get(&id).unwrap();
@@ -83,7 +83,7 @@ impl RojoTree {
}
}
pub fn get_instance_mut(&mut self, id: Ref) -> Option<InstanceWithMetaMut> {
pub fn get_instance_mut(&mut self, id: Ref) -> Option<InstanceWithMetaMut<'_>> {
if let Some(instance) = self.inner.get_by_ref_mut(id) {
let metadata = self.metadata_map.get_mut(&id).unwrap();