Fix async fn in trait warning
This commit is contained in:
parent
08a4bf87dc
commit
04bd5cf8c4
@ -2,6 +2,7 @@ use crate::node::NodeValue;
|
|||||||
use crate::NodeId;
|
use crate::NodeId;
|
||||||
pub use compute_graph_macros::InputVisitable;
|
pub use compute_graph_macros::InputVisitable;
|
||||||
use std::cell::{Ref, RefCell};
|
use std::cell::{Ref, RefCell};
|
||||||
|
use std::future::Future;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
@ -62,7 +63,7 @@ pub trait AsyncRule: InputVisitable + 'static {
|
|||||||
/// Asynchronously produces the value of this rule using its inputs.
|
/// Asynchronously produces the value of this rule using its inputs.
|
||||||
///
|
///
|
||||||
/// See [`Rule::evaluate`] for additional details; the same considerations apply.
|
/// See [`Rule::evaluate`] for additional details; the same considerations apply.
|
||||||
async fn evaluate(&mut self) -> Self::Output;
|
fn evaluate(&mut self) -> impl Future<Output = Self::Output> + '_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Common supertrait of [`Rule`] and [`AsyncRule`] that defines how rule inputs are visited.
|
/// Common supertrait of [`Rule`] and [`AsyncRule`] that defines how rule inputs are visited.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user