1
0
Fork 0
forked from wry/wry

all: address clippy lints

This commit is contained in:
Julian Orth 2022-08-13 17:46:23 +02:00
parent 0fe59effe2
commit ae991b9038
28 changed files with 84 additions and 70 deletions

View file

@ -920,8 +920,8 @@ impl<'a> EdidParser<'a> {
fn parse_descriptors(&mut self, revision: u8) -> Result<[Option<Descriptor>; 4], EdidError> {
let _ctx = self.push_ctx(EdidParseContext::Descriptors);
let mut res = [None, None, None, None];
for i in 0..4 {
res[i] = self.parse_descriptor(revision)?;
for res in &mut res {
*res = self.parse_descriptor(revision)?;
}
Ok(res)
}