You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's too easy to accidentally override a transparent error's class: #2 (comment)
#[derive(Debug, JsError)]
#[class(type)]
pub struct FailedReadingLocalFileError {
...
}
#[derive(Debug, Error, JsError)]
pub enum FetchNoFollowErrorKind {
#[class(generic)] // bad, this should have been `inherit`
#[error(transparent)]
ReadingFile(FailedReadingLocalFileError),
The text was updated successfully, but these errors were encountered:
dsherret
changed the title
Require explicit override when class should be using #[class(inherit)]
Require explicit override for class when transparent error has an existing class
Dec 6, 2024
It's too easy to accidentally override a transparent error's class: #2 (comment)
The text was updated successfully, but these errors were encountered: