-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make file-related APIs compatible with io::Cursor (#121)
The codebase defines a StorageFile trait to model anything similar to a file. By using `impl StorageFile` instead of `fs::File` in the API signatures, users are able to provide either a file or something similar (for example, `io::Cursor` to manipulate a block of data in memory). This commit updates the APIs still using `fs::File` to `impl StorageFile`.
- Loading branch information
1 parent
0377e82
commit 4586dd0
Showing
2 changed files
with
11 additions
and
8 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