Skip to content

Commit

Permalink
derive(Debug) for JsError
Browse files Browse the repository at this point in the history
This should allow using `.unwrap()` & `.expect()`
on it, in unit tests for example.

Resolves #4099.
  • Loading branch information
rcrisanti committed Oct 2, 2024
1 parent 4765448 commit 8f369f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ impl<T> DerefMut for Clamped<T> {
/// }
///
/// ```
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct JsError {
value: JsValue,
}
Expand Down

0 comments on commit 8f369f5

Please sign in to comment.