make some enums non-exhaustive (#2140)
This commit is contained in:
1 parent
460a685fa3
commit
dadbab5d72
16 files changed
+28
-11
No files matched your search
@@ -26,6 +26,7 @@ pub trait WebsocketRx: StreamExt<Item = Result<String, LiveViewError>> {}
|
||||
impl<T> WebsocketRx for T where T: StreamExt<Item = Result<String, LiveViewError>> {}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[non_exhaustive]
|
||||
pub enum LiveViewError {
|
||||
#[error("Sending to client error")]
|
||||
SendingFailed,
|
||||
|
||||
@@ -260,6 +260,7 @@ impl<V: DeserializeOwned> Drop for Query<V> {
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[non_exhaustive]
|
||||
pub enum QueryError {
|
||||
#[error("Error receiving query result: {0}")]
|
||||
Recv(RecvError),
|
||||
|
||||
Reference in new issue
Block a user