chore: add #[non_exhaustive] to remaining public structs (#768)
* chore: add #[non_exhaustive] to remaining public structs * chore: add #[non_exhaustive] to remaining public types * chore: enable exhaustive_structs/enums clippy lints * test: add untagged ServerResult deserialization regression tests
This commit is contained in:
parent
ee1c63c53f
commit
6a3b32d3ab
1 changed files with 430 additions and 211 deletions
|
|
@ -153,6 +153,7 @@ where
|
|||
fn into_transport(self) -> impl Transport<R, Error = E> + 'static;
|
||||
}
|
||||
|
||||
#[non_exhaustive]
|
||||
pub enum TransportAdapterIdentity {}
|
||||
impl<R, T, E> IntoTransport<R, E, TransportAdapterIdentity> for T
|
||||
where
|
||||
|
|
@ -233,6 +234,7 @@ where
|
|||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error("Transport [{transport_name}] error: {error}")]
|
||||
#[non_exhaustive]
|
||||
pub struct DynamicTransportError {
|
||||
pub transport_name: Cow<'static, str>,
|
||||
pub transport_type_id: std::any::TypeId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue