File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,12 @@ pub enum Payload {
143
143
impl KeyPayload for Payload {
144
144
fn payload ( & self ) -> Cow < [ u8 ] > {
145
145
let payload = match * self {
146
- Payload :: New { ref format, ref keytype, ref description, ref keylen } => {
146
+ Payload :: New {
147
+ ref format,
148
+ ref keytype,
149
+ ref description,
150
+ ref keylen,
151
+ } => {
147
152
format ! (
148
153
"new {} {}:{} {}" ,
149
154
format. unwrap_or_default( ) . name( ) ,
@@ -152,12 +157,13 @@ impl KeyPayload for Payload {
152
157
keylen,
153
158
)
154
159
} ,
155
- Payload :: Load { ref blob } => {
156
- format ! ( "load {}" , AsciiHex :: convert( & blob) )
157
- } ,
158
- Payload :: Update { ref keytype, ref description } => {
159
- format ! ( "update {}:{}" , keytype. name( ) , description)
160
- } ,
160
+ Payload :: Load {
161
+ ref blob,
162
+ } => format ! ( "load {}" , AsciiHex :: convert( & blob) ) ,
163
+ Payload :: Update {
164
+ ref keytype,
165
+ ref description,
166
+ } => format ! ( "update {}:{}" , keytype. name( ) , description) ,
161
167
} ;
162
168
163
169
payload. bytes ( ) . collect ( )
You can’t perform that action at this time.
0 commit comments