Add reformat to the CI (#21)

This commit is contained in:
John Nunley 2022-12-22 12:35:18 -08:00 committed by GitHub
parent df091d59dd
commit 5674886dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 112 additions and 78 deletions

View file

@ -32,10 +32,7 @@ impl WebImpl {
// `querySelector` only throws an error if the selector is invalid.
.unwrap()
.ok_or_else(|| {
SwBufError::PlatformError(
Some("No canvas found with the given id".into()),
None,
)
SwBufError::PlatformError(Some("No canvas found with the given id".into()), None)
})?
// We already made sure this was a canvas in `querySelector`.
.unchecked_into();