@@ -34,7 +34,6 @@ pub use crate::license_exchange::LicenseCache;
3434
3535/// Provides user-friendly error messages for RDP negotiation failures
3636#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
37- #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
3837pub struct NegotiationFailure ( ironrdp_pdu:: nego:: FailureCode ) ;
3938
4039impl NegotiationFailure {
@@ -83,22 +82,19 @@ impl fmt::Display for NegotiationFailure {
8382}
8483
8584#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
86- #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
8785pub struct DesktopSize {
8886 pub width : u16 ,
8987 pub height : u16 ,
9088}
9189
9290#[ derive( Debug , Clone ) ]
93- #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
9491pub struct BitmapConfig {
9592 pub lossy_compression : bool ,
9693 pub color_depth : u32 ,
9794 pub codecs : BitmapCodecs ,
9895}
9996
10097#[ derive( Debug , Clone ) ]
101- #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
10298pub struct SmartCardIdentity {
10399 /// DER-encoded X509 certificate
104100 pub certificate : Vec < u8 > ,
@@ -113,7 +109,6 @@ pub struct SmartCardIdentity {
113109}
114110
115111#[ derive( Debug , Clone ) ]
116- #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
117112pub enum Credentials {
118113 UsernamePassword {
119114 username : String ,
@@ -142,7 +137,6 @@ impl Credentials {
142137}
143138
144139#[ derive( Debug , Clone ) ]
145- #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
146140pub struct Config {
147141 /// The initial desktop size to request
148142 pub desktop_size : DesktopSize ,
@@ -236,11 +230,6 @@ pub struct Config {
236230 pub enable_audio_playback : bool ,
237231 pub performance_flags : PerformanceFlags ,
238232
239- // `Arc<dyn LicenseCache>` cannot be generated by `arbitrary`. Skipped via
240- // `arbitrary(default)` which yields `None`. License-cache-dependent paths
241- // are not exercised under fuzz; a fuzz-mode `LicenseCache` impl is a
242- // possible follow-up.
243- #[ cfg_attr( feature = "arbitrary" , arbitrary( default ) ) ]
244233 pub license_cache : Option < Arc < dyn LicenseCache > > ,
245234
246235 // For Timezone Redirection to sync the server's timezone with the client's.
@@ -304,7 +293,6 @@ impl State for () {
304293}
305294
306295#[ derive( Clone , Copy , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
307- #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
308296pub enum Written {
309297 Nothing ,
310298 Size ( core:: num:: NonZeroUsize ) ,
@@ -351,8 +339,6 @@ pub type ConnectorResult<T> = Result<T, ConnectorError>;
351339
352340#[ non_exhaustive]
353341#[ derive( Debug ) ]
354- // ConnectorErrorKind carries foreign error types (sspi::Error, ironrdp_error::Error)
355- // that do not implement Arbitrary, so this enum is intentionally not annotated.
356342pub enum ConnectorErrorKind {
357343 Encode ( ironrdp_core:: EncodeError ) ,
358344 Decode ( ironrdp_core:: DecodeError ) ,
0 commit comments