update
This commit is contained in:
parent
7f32f2429e
commit
65bfb5f8e2
10 changed files with 60 additions and 55 deletions
|
@ -35,9 +35,7 @@ impl Validate for Location {
|
|||
|
||||
impl Location {
|
||||
/// Recursively get the conditions of a location. This inherits from parent locations.
|
||||
pub fn conditions_rec<'a>(
|
||||
&'a self,
|
||||
) -> futures::future::BoxFuture<'a, Option<StorageConditions>> {
|
||||
pub fn conditions_rec(&self) -> futures::future::BoxFuture<'_, Option<StorageConditions>> {
|
||||
async move {
|
||||
if let Some(cond) = &self.conditions {
|
||||
return Some(cond.clone());
|
||||
|
@ -64,7 +62,7 @@ impl Location {
|
|||
}
|
||||
|
||||
// Get all children locations
|
||||
pub fn children_recursive<'a>(&'a self) -> futures::future::BoxFuture<'a, Vec<Location>> {
|
||||
pub fn children_recursive(&self) -> futures::future::BoxFuture<'_, Vec<Location>> {
|
||||
async move {
|
||||
let mut all = Vec::new();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue