Skip to content

Commit

Permalink
impl rspc::Error for Infallible
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Aug 26, 2024
1 parent 02ed857 commit 6ed156b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rspc/src/infallible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ impl Serialize for Infallible {
}

impl std::error::Error for Infallible {}

impl crate::Error for Infallible {
fn status(&self) -> u16 {
unreachable!()
}
}

0 comments on commit 6ed156b

Please sign in to comment.