@@ -15,6 +15,7 @@ use super::message::{
1515 OutputType ,
1616 serializer:: ButtplugSerializerError ,
1717} ;
18+ use displaydoc:: Display ;
1819use futures:: future:: BoxFuture ;
1920use serde:: { Deserialize , Serialize } ;
2021use thiserror:: Error ;
@@ -51,7 +52,7 @@ impl_error_to_future!(
5152/// a remote network connection cannot be established), see
5253/// [crate::connector::ButtplugConnectorError].
5354
54- #[ derive( Debug , Error , Display , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
55+ #[ derive( Display , Error , Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
5556pub enum ButtplugHandshakeError {
5657 /// Expected either a ServerInfo or Error message, received {0}
5758 UnexpectedHandshakeMessageReceived ( String ) ,
@@ -130,7 +131,7 @@ pub enum ButtplugDeviceError {
130131 DeviceCommunicationError ( String ) ,
131132 /// Device feature only has {0} steps for control, but {1} steps specified.
132133 DeviceStepRangeError ( i32 , i32 ) ,
133- /// Device got {} output command but has no viable outputs
134+ /// Device got {0 } output command but has no viable outputs
134135 DeviceNoOutputError ( OutputType ) ,
135136 /// Device got {0} input command but has no viable inputs
136137 DeviceNoInputError ( InputType ) ,
0 commit comments