Parameter values should be converted using ToString

This commit is contained in:
Michael-F-Bryan 2022-07-17 16:07:39 +08:00
parent 5b27e078e3
commit 9c2d1f3586
No known key found for this signature in database
GPG Key ID: E9C602B0D9A998DC

View File

@ -295,9 +295,9 @@ impl Parameters {
pub fn insert( pub fn insert(
&mut self, &mut self,
key: impl Into<String>, key: impl Into<String>,
value: impl Into<String>, value: impl ToString,
) -> &mut Self { ) -> &mut Self {
self.0.insert(key.into(), value.into()); self.0.insert(key.into(), value.to_string());
self self
} }
} }