Skip to content

Commit acb931b

Browse files
committed
Use let chains where possible now that Rust 1.88.0 has been released.
1 parent 8ff8453 commit acb931b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/reader.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ impl<'a> Reader<'a> {
5959
}
6060

6161
// Check whether the next set of bytes are related to the Cubase version.
62-
if metadata.is_none() {
63-
if let Some((found_metadata, updated_index)) = self.search_metadata(index)? {
64-
metadata = Some(found_metadata);
65-
index = updated_index;
66-
continue;
67-
}
62+
if metadata.is_none()
63+
&& let Some((found_metadata, updated_index)) = self.search_metadata(index)?
64+
{
65+
metadata = Some(found_metadata);
66+
index = updated_index;
67+
continue;
6868
}
6969

7070
// Check whether the next set of bytes relate to a plugin.

0 commit comments

Comments
 (0)