Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Aug 28, 2024
1 parent 873991b commit 0d4e7a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl JsErrorClass for std::io::Error {
fn get_additional_properties(
&self,
) -> Option<Vec<(Cow<'static, str>, Cow<'static, str>)>> {
crate::error_codes::get_error_code(&self)
crate::error_codes::get_error_code(self)
.map(|code| vec![("code".into(), code.into())])
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/io/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub trait Resource: Any + 'static {
/// implement `read_byob()`.
fn read(self: Rc<Self>, limit: usize) -> AsyncResult<BufView> {
_ = limit;
Box::pin(futures::future::err(JsNativeError::not_supported().into()))
Box::pin(futures::future::err(JsNativeError::not_supported()))
}

/// Read a single chunk of data from the resource into the provided `BufMutView`.
Expand Down

0 comments on commit 0d4e7a1

Please sign in to comment.