all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -249,17 +249,17 @@ where
|
|||
}
|
||||
let node = 'node: {
|
||||
for f in &files {
|
||||
if let Some(file) = f.file_name() {
|
||||
if file.as_bytes().starts_with_str("renderD") {
|
||||
break 'node f;
|
||||
}
|
||||
if let Some(file) = f.file_name()
|
||||
&& file.as_bytes().starts_with_str("renderD")
|
||||
{
|
||||
break 'node f;
|
||||
}
|
||||
}
|
||||
for f in &files {
|
||||
if let Some(file) = f.file_name() {
|
||||
if file.as_bytes().starts_with_str("card") {
|
||||
break 'node f;
|
||||
}
|
||||
if let Some(file) = f.file_name()
|
||||
&& file.as_bytes().starts_with_str("card")
|
||||
{
|
||||
break 'node f;
|
||||
}
|
||||
}
|
||||
return Err(TestBackendError::NoDrmNode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue