Use `unwrap_or_default`

This commit is contained in:
David Wendt 2020-07-18 17:28:07 -04:00
parent 44b924d7b4
commit 7adabc8166
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ impl<'gc> TranslationUnit<'gc> {
) -> Result<AvmString<'gc>, Error> {
Ok(self
.pool_string_option(string_index, mc)?
.unwrap_or_else(|| "".into()))
.unwrap_or_default())
}
}