diff --git a/kube-core/src/metadata.rs b/kube-core/src/metadata.rs index be7dd5b6c..300b25e1c 100644 --- a/kube-core/src/metadata.rs +++ b/kube-core/src/metadata.rs @@ -28,10 +28,10 @@ impl TypeMeta { /// assert_eq!(type_meta.kind, "PodList"); /// assert_eq!(type_meta.api_version, "v1"); /// ``` - pub fn list>() -> Self { + pub fn list>() -> Self { TypeMeta { - api_version: K::api_version(&()).into(), - kind: K::kind(&()).to_string() + "List", + api_version: K::api_version(&Default::default()).into(), + kind: K::kind(&Default::default()).to_string() + "List", } }