Skip to content

Commit 7dbf145

Browse files
juggiemanio
authored andcommitted
config: fix EvConnectorTypes serialization/string representation
1 parent ba32336 commit 7dbf145

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/config_types.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,14 @@ pub struct EvConnectorTypes(pub Option<Vec<EvConnectorType>>);
9999

100100
impl EvConnectorTypes {
101101
fn to_string_internal(&self) -> String {
102-
self.0
103-
.iter()
104-
.map(|t| format!("{:?}", t))
105-
.collect::<Vec<String>>()
106-
.join(",")
102+
match &self.0 {
103+
Some(types) => types
104+
.iter()
105+
.map(|t| t.to_string())
106+
.collect::<Vec<String>>()
107+
.join(","),
108+
None => "".to_string(),
109+
}
107110
}
108111
}
109112

0 commit comments

Comments
 (0)