-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only handle error values in Error and ErrorKind
littlefs2 error codes are negative. Non-negative values indicate success. This patch updates our error types to enforce this property by changing the return type of Error::new to Option<Self> and by removing ErrorKind::Success.
- Loading branch information
1 parent
482cfe8
commit 48bab4a
Showing
2 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters