mirror of https://codeberg.org/topola/topola.git
chore: Fix warnings about lifetime annotations
This commit is contained in:
parent
4851342fd8
commit
4fea23c9ac
|
|
@ -187,7 +187,7 @@ impl<B: NavmeshBase> From<Navmesh<B>> for NavmeshSer<B> {
|
||||||
|
|
||||||
impl<B: NavmeshBase> Navmesh<B> {
|
impl<B: NavmeshBase> Navmesh<B> {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn as_ref(&self) -> NavmeshRef<B> {
|
pub fn as_ref(&self) -> NavmeshRef<'_, B> {
|
||||||
NavmeshRef {
|
NavmeshRef {
|
||||||
nodes: &self.nodes,
|
nodes: &self.nodes,
|
||||||
edges: &self.edges,
|
edges: &self.edges,
|
||||||
|
|
@ -196,7 +196,7 @@ impl<B: NavmeshBase> Navmesh<B> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn as_mut(&mut self) -> NavmeshRefMut<B> {
|
pub fn as_mut(&mut self) -> NavmeshRefMut<'_, B> {
|
||||||
NavmeshRefMut {
|
NavmeshRefMut {
|
||||||
nodes: &self.nodes,
|
nodes: &self.nodes,
|
||||||
edges: &self.edges,
|
edges: &self.edges,
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ impl<R: AccessRules> Layout<R> {
|
||||||
self.drawing.rules_mut()
|
self.drawing.rules_mut()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn via(&self, index: GenericIndex<ViaWeight>) -> Via<R> {
|
pub fn via(&self, index: GenericIndex<ViaWeight>) -> Via<'_, R> {
|
||||||
Via::new(index, self.drawing())
|
Via::new(index, self.drawing())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ where
|
||||||
navnode: G::NodeId,
|
navnode: G::NodeId,
|
||||||
tracker: &PathTracker<G>,
|
tracker: &PathTracker<G>,
|
||||||
) -> Result<Option<R>, ()>;
|
) -> Result<Option<R>, ()>;
|
||||||
fn place_probe_to_navnode<'a>(&mut self, graph: &'a G, probed_navnode: G::NodeId) -> Option<K>;
|
fn place_probe_to_navnode(&mut self, graph: &G, probed_navnode: G::NodeId) -> Option<K>;
|
||||||
fn remove_probe(&mut self, graph: &G);
|
fn remove_probe(&mut self, graph: &G);
|
||||||
fn estimate_cost_to_goal(&mut self, graph: &G, navnode: G::NodeId) -> K;
|
fn estimate_cost_to_goal(&mut self, graph: &G, navnode: G::NodeId) -> K;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue