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
@@ -7,6 +7,7 @@ use crate::menubar::{default_menu_bar, DioxusMenu};
|
||||
|
||||
/// The behaviour of the application when the last window is closed.
|
||||
#[derive(Copy, Clone, Eq, PartialEq)]
|
||||
#[non_exhaustive]
|
||||
pub enum WindowCloseBehaviour {
|
||||
/// Default behaviour, closing the last window exits the app
|
||||
LastWindowExitsApp,
|
||||
|
||||
@@ -254,6 +254,7 @@ impl<V: DeserializeOwned> Drop for Query<V> {
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[non_exhaustive]
|
||||
pub enum QueryError {
|
||||
#[error("Error receiving query result.")]
|
||||
Recv,
|
||||
|
||||
Reference in new issue
Block a user