removed unwraps (#430)

This commit is contained in:
Fernando Herrera
2021-12-04 12:38:21 +00:00
committed by GitHub
parent eed22605ef
commit 8a06ea133b
24 changed files with 233 additions and 159 deletions

View File

@ -143,7 +143,7 @@ where
input,
);
let to_trim = match options.character.as_ref() {
Some(v) => v.as_string().unwrap().chars().next(),
Some(v) => v.as_string()?.chars().next(),
None => None,
};