Skip to content

Commit 5522add

Browse files
committed
use .is instead of downcast_ref to check for PathNotFoundError
1 parent b859e78 commit 5522add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ pub(crate) async fn source_browser_handler(
265265
{
266266
Ok(blob) => Some(blob),
267267
Err(err) => {
268-
if err.downcast_ref::<PathNotFoundError>().is_some() {
268+
if err.is::<PathNotFoundError>() {
269269
None
270270
} else {
271271
return Err(err.into());

0 commit comments

Comments
 (0)