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> {
|
||||
#[inline(always)]
|
||||
pub fn as_ref(&self) -> NavmeshRef<B> {
|
||||
pub fn as_ref(&self) -> NavmeshRef<'_, B> {
|
||||
NavmeshRef {
|
||||
nodes: &self.nodes,
|
||||
edges: &self.edges,
|
||||
|
|
@ -196,7 +196,7 @@ impl<B: NavmeshBase> Navmesh<B> {
|
|||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn as_mut(&mut self) -> NavmeshRefMut<B> {
|
||||
pub fn as_mut(&mut self) -> NavmeshRefMut<'_, B> {
|
||||
NavmeshRefMut {
|
||||
nodes: &self.nodes,
|
||||
edges: &self.edges,
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ impl<R: AccessRules> Layout<R> {
|
|||
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())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ where
|
|||
navnode: G::NodeId,
|
||||
tracker: &PathTracker<G>,
|
||||
) -> 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 estimate_cost_to_goal(&mut self, graph: &G, navnode: G::NodeId) -> K;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue