mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
Accept ToString instead of AsRef<str> in Params.set() (#3732)
This commit is contained in:
@@ -266,8 +266,8 @@ impl Params {
|
||||
}
|
||||
|
||||
/// Set the given key to the passed in value.
|
||||
pub fn set(&mut self, key: Param, value: impl AsRef<str>) -> &mut Self {
|
||||
self.inner.insert(key, value.as_ref().to_string());
|
||||
pub fn set(&mut self, key: Param, value: impl ToString) -> &mut Self {
|
||||
self.inner.insert(key, value.to_string());
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user