Remove async-traits

This commit is contained in:
2025-03-22 03:20:16 +01:00
parent 4308312a61
commit 2e952ea8cd
5 changed files with 1 additions and 9 deletions

View File

@@ -1,4 +1,3 @@
use async_trait::async_trait;
use k8s_openapi::api::core::v1::Secret;
use kube::runtime::events::{Event, EventType, Recorder, Reporter};
use kube::{Resource, ResourceExt};
@@ -26,7 +25,7 @@ impl Context {
}
}
#[async_trait]
#[allow(async_fn_in_trait)]
pub trait ControllerEvents {
type Error;
@@ -47,7 +46,6 @@ pub trait ControllerEvents {
T: Resource<DynamicType = ()> + Sync;
}
#[async_trait]
impl ControllerEvents for Recorder {
type Error = kube::Error;