Skip to content

Commit 0b23b6c

Browse files
Cargo fmt
1 parent afb571b commit 0b23b6c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Diff for: verify/rust_verify/src/rust_to_vir_base.rs

+10-5
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ pub(crate) fn parse_attrs(attrs: &[Attribute]) -> Result<Vec<Attr>, VirErr> {
198198
Some(box [AttrTree::Fun(_, arg, None)]) if arg == "pub_abstract" => {
199199
v.push(Attr::Abstract)
200200
}
201-
Some(box [AttrTree::Fun(_, arg, None), AttrTree::Fun(_, msg, None)]) if arg == "custom_req_err" => {
201+
Some(box [AttrTree::Fun(_, arg, None), AttrTree::Fun(_, msg, None)])
202+
if arg == "custom_req_err" =>
203+
{
202204
v.push(Attr::CustomReqErr(msg.clone()))
203205
}
204-
_ => {
205-
return err_span_str(span, "unrecognized verifier attribute")
206-
}
206+
_ => return err_span_str(span, "unrecognized verifier attribute"),
207207
},
208208
_ => {}
209209
}
@@ -267,7 +267,12 @@ pub(crate) struct VerifierAttrs {
267267
}
268268

269269
pub(crate) fn get_verifier_attrs(attrs: &[Attribute]) -> Result<VerifierAttrs, VirErr> {
270-
let mut vs = VerifierAttrs { do_verify: true, external: false, is_abstract: false, custom_req_err: None };
270+
let mut vs = VerifierAttrs {
271+
do_verify: true,
272+
external: false,
273+
is_abstract: false,
274+
custom_req_err: None,
275+
};
271276
for attr in parse_attrs(attrs)? {
272277
match attr {
273278
Attr::NoVerify => vs.do_verify = false,

0 commit comments

Comments
 (0)