mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 05:21:00 +00:00
allocate new SafeString in FromFormValue impl
thanks to @fdb-hiroshima for this review!
This commit is contained in:
parent
0897088aa5
commit
d62c72dde0
1 changed files with 1 additions and 3 deletions
|
@ -110,8 +110,6 @@ impl<'v> FromFormValue<'v> for SafeString {
|
|||
|
||||
fn from_form_value(form_value: &'v RawStr) -> Result<SafeString, &'v RawStr> {
|
||||
let val = String::from_form_value(form_value)?;
|
||||
Ok(SafeString {
|
||||
value: val,
|
||||
})
|
||||
Ok(SafeString::new(&val))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue