We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2067e7 commit 770b954Copy full SHA for 770b954
kube-core/src/metadata.rs
@@ -28,10 +28,10 @@ impl TypeMeta {
28
/// assert_eq!(type_meta.kind, "PodList");
29
/// assert_eq!(type_meta.api_version, "v1");
30
/// ```
31
- pub fn list<K: Resource<DynamicType = ()>>() -> Self {
+ pub fn list<K: Resource<DynamicType = impl Default>>() -> Self {
32
TypeMeta {
33
- api_version: K::api_version(&()).into(),
34
- kind: K::kind(&()).to_string() + "List",
+ api_version: K::api_version(&Default::default()).into(),
+ kind: K::kind(&Default::default()).to_string() + "List",
35
}
36
37
0 commit comments