Make event_loop_runtime work with newer autocxx
Change-Id: I0bf6a1fae2ee9926b1e1d73ffee647a449d03b6e
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/events/event_loop_runtime.rs b/aos/events/event_loop_runtime.rs
index 7f58dbb..3d84aff 100644
--- a/aos/events/event_loop_runtime.rs
+++ b/aos/events/event_loop_runtime.rs
@@ -56,7 +56,7 @@
};
use autocxx::{
- subclass::{is_subclass, CppSubclass},
+ subclass::{subclass, CppSubclass},
WithinBox,
};
use cxx::UniquePtr;
@@ -102,7 +102,7 @@
/// enforcing the lifetime: it destroys this object along with the C++ `EventLoopRuntime`, which
/// must be outlived by the EventLoop.
#[doc(hidden)]
-#[is_subclass(superclass("aos::ApplicationFuture"))]
+#[subclass]
pub struct RustApplicationFuture {
/// This logically has a `'event_loop` bound, see the class comment for details.
future: Pin<Box<dyn Future<Output = Never>>>,