Update macro and cargo fmt

This commit is contained in:
Steve Cook
2023-03-01 13:43:21 -05:00
parent 51fcc98b34
commit b561bd77c3
19 changed files with 101 additions and 64 deletions

View File

@@ -152,7 +152,9 @@ impl BitMatrix {
first_run = false;
rowLength = bitsPos - rowStartPos;
} else if bitsPos - rowStartPos != rowLength {
return Err(Exceptions::illegal_argument_with("row lengths do not match"));
return Err(Exceptions::illegal_argument_with(
"row lengths do not match",
));
}
rowStartPos = bitsPos;
nRows += 1;
@@ -181,7 +183,9 @@ impl BitMatrix {
// first_run = false;
rowLength = bitsPos - rowStartPos;
} else if bitsPos - rowStartPos != rowLength {
return Err(Exceptions::illegal_argument_with("row lengths do not match"));
return Err(Exceptions::illegal_argument_with(
"row lengths do not match",
));
}
nRows += 1;
}