Use thiserror for error handling with less boilerplate

This commit is contained in:
Steve Cook
2023-02-20 09:41:28 -05:00
parent 01e4f4a126
commit f8b29f37db
135 changed files with 868 additions and 905 deletions

View File

@@ -55,7 +55,7 @@ impl<'a> Detector<'_> {
if let Some(point) = self.correctTopRight(&points) {
points[3] = point;
} else {
return Err(Exceptions::notFoundWith("point 4 unfound"));
return Err(Exceptions::not_found_with("point 4 unfound"));
}
// points[3] = self.correctTopRight(&points);
// if points[3] == null {