diff options
Diffstat (limited to 'src/primitive/string.rs')
| -rw-r--r-- | src/primitive/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitive/string.rs b/src/primitive/string.rs index 0d3e344..31492ae 100644 --- a/src/primitive/string.rs +++ b/src/primitive/string.rs @@ -99,7 +99,7 @@ impl Deserialize for String { pos += slen; } - let res: String = String::from_utf16(&chars).unwrap(); + let res: String = String::from_utf16(&chars)?; trace!("parsed string: {}", res); Ok((pos, res)) } |
