Skip to content

Commit c1013c2

Browse files
committed
rustfmt: reformat large match destructurings
1 parent 33a15ec commit c1013c2

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/keytypes/encrypted.rs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ pub enum Payload {
143143
impl KeyPayload for Payload {
144144
fn payload(&self) -> Cow<[u8]> {
145145
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+
} => {
147152
format!(
148153
"new {} {}:{} {}",
149154
format.unwrap_or_default().name(),
@@ -152,12 +157,13 @@ impl KeyPayload for Payload {
152157
keylen,
153158
)
154159
},
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),
161167
};
162168

163169
payload.bytes().collect()

0 commit comments

Comments
 (0)