feat: replace async-trait with erased box type

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2026-01-07 11:05:33 +01:00
parent 5e60a272f7
commit f0c90edce9
13 changed files with 93 additions and 74 deletions

View File

@@ -1,11 +1,9 @@
use async_trait::async_trait;
use tokio_util::sync::CancellationToken;
struct NestedErrorComponent {
name: String,
}
#[async_trait]
impl notmad::Component for NestedErrorComponent {
fn name(&self) -> Option<String> {
Some(self.name.clone())
@@ -28,7 +26,6 @@ impl notmad::Component for NestedErrorComponent {
struct AnotherFailingComponent;
#[async_trait]
impl notmad::Component for AnotherFailingComponent {
fn name(&self) -> Option<String> {
Some("another-component".into())