diff --git a/crates/util/src/util.rs b/crates/util/src/util.rs index 98ade249fc2617af4ea00d0f8a2dc52b26ffb0c0..3c12c7bdf4d17c1a78757be0a1e5fbbb8b9afe9f 100644 --- a/crates/util/src/util.rs +++ b/crates/util/src/util.rs @@ -678,7 +678,7 @@ mod rng { pub use rng::RandomCharIter; /// Get an embedded file as a string. pub fn asset_str(path: &str) -> Cow<'static, str> { - match A::get(path).unwrap().data { + match A::get(path).expect(path).data { Cow::Borrowed(bytes) => Cow::Borrowed(std::str::from_utf8(bytes).unwrap()), Cow::Owned(bytes) => Cow::Owned(String::from_utf8(bytes).unwrap()), }