Skip to content

Commit 27a59c2

Browse files
authored
Merge pull request #197 from mulimoen/bugfix/h5vl_macro
Move catch-all in match after variants
2 parents 2d0a5c1 + 86274d3 commit 27a59c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hdf5-sys/src/h5vl.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ mod v1_13_0 {
115115
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
116116
let mut s = f.debug_struct(stringify!($ty));
117117
s.field("op_type", &self.op_type);
118-
match self.op_type {$(
119-
$tag::$variant => {
118+
match self.op_type {
119+
$($tag::$variant => {
120120
s.field("args", &($func as fn($args) -> _)(self.args));
121-
}
121+
})+
122122
_ => {}
123-
)+}
123+
}
124124
s.finish()
125125
}
126126
}

0 commit comments

Comments
 (0)