Skip to content

Commit 96303b9

Browse files
committed
use static async fn in trait
Signed-off-by: tottoto <[email protected]>
1 parent 57a5e14 commit 96303b9

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ anyhow = "1.0.71"
3636
assert-json-diff = "2.0.2"
3737
async-broadcast = "0.7.0"
3838
async-stream = "0.3.5"
39-
async-trait = "0.1.64"
4039
backon = "1.3"
4140
base64 = "0.22.1"
4241
bytes = "1.1.0"

kube-runtime/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ json-patch.workspace = true
4343
serde_json.workspace = true
4444
thiserror.workspace = true
4545
backon.workspace = true
46-
async-trait.workspace = true
4746
hashbrown.workspace = true
4847
k8s-openapi.workspace = true
4948
async-broadcast.workspace = true

kube-runtime/src/watcher.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
use crate::utils::{Backoff, ResetTimerBackoff};
66

7-
use async_trait::async_trait;
87
use backon::BackoffBuilder;
98
use educe::Educe;
109
use futures::{stream::BoxStream, Stream, StreamExt};
@@ -164,7 +163,6 @@ enum State<K> {
164163

165164
/// Used to control whether the watcher receives the full object, or only the
166165
/// metadata
167-
#[async_trait]
168166
trait ApiMode {
169167
type Value: Clone;
170168

@@ -436,7 +434,6 @@ impl Config {
436434
}
437435
}
438436

439-
#[async_trait]
440437
impl<K> ApiMode for FullObject<'_, K>
441438
where
442439
K: Clone + Debug + DeserializeOwned + Send + 'static,
@@ -462,7 +459,6 @@ struct MetaOnly<'a, K> {
462459
api: &'a Api<K>,
463460
}
464461

465-
#[async_trait]
466462
impl<K> ApiMode for MetaOnly<'_, K>
467463
where
468464
K: Clone + Debug + DeserializeOwned + Send + 'static,

0 commit comments

Comments
 (0)