@@ -11,6 +11,7 @@ use serde::{Deserialize as _, Deserializer, Serialize, Serializer};
1111use serde_yaml:: { self , Value } ;
1212use std:: {
1313 collections:: { BTreeMap , HashMap } ,
14+ hash:: BuildHasher ,
1415 result,
1516 sync:: Arc ,
1617} ;
@@ -38,8 +39,8 @@ pub fn to_yaml<T: Serialize>(instance: &T) -> Result<String> {
3839 Ok ( yaml)
3940}
4041
41- pub ( crate ) fn serialize_hashmap < S , K : Ord + Serialize , V : Serialize > (
42- map : & HashMap < K , V > ,
42+ pub fn serialize_hashmap < S , K : Ord + Serialize , V : Serialize , BH : BuildHasher > (
43+ map : & HashMap < K , V , BH > ,
4344 serializer : S ,
4445) -> result:: Result < S :: Ok , S :: Error >
4546where
4950 sorted. serialize ( serializer)
5051}
5152
52- #[ expect ( clippy:: ref_option, reason = "Serde requires this signature." ) ]
53- pub ( crate ) fn serialize_hashmap_option < S , K : Ord + Serialize , V : Serialize > (
54- map_option : & Option < HashMap < K , V > > ,
53+ #[ allow ( clippy:: ref_option, reason = "Serde requires this signature." ) ]
54+ pub fn serialize_hashmap_option < S , K : Ord + Serialize , V : Serialize , BH : BuildHasher > (
55+ map_option : & Option < HashMap < K , V , BH > > ,
5556 serializer : S ,
5657) -> result:: Result < S :: Ok , S :: Error >
5758where
6364 sorted. serialize ( serializer)
6465}
6566
66- #[ expect(
67- clippy:: expect_used,
68- reason = "Function signature required by serde API."
69- ) ]
70- pub ( crate ) fn deserialize_pod < ' de , D > ( deserializer : D ) -> result:: Result < Arc < Pod > , D :: Error >
67+ #[ expect( clippy:: expect_used, reason = "Serde requires this signature." ) ]
68+ pub fn deserialize_pod < ' de , D > ( deserializer : D ) -> result:: Result < Arc < Pod > , D :: Error >
7169where
7270 D : Deserializer < ' de > ,
7371{
8987 )
9088}
9189
92- #[ expect(
93- clippy:: expect_used,
94- reason = "Function signature required by serde API."
95- ) ]
96- pub ( crate ) fn deserialize_pod_job < ' de , D > ( deserializer : D ) -> result:: Result < Arc < PodJob > , D :: Error >
90+ #[ expect( clippy:: expect_used, reason = "Serde requires this signature." ) ]
91+ pub fn deserialize_pod_job < ' de , D > ( deserializer : D ) -> result:: Result < Arc < PodJob > , D :: Error >
9792where
9893 D : Deserializer < ' de > ,
9994{
0 commit comments