forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: use
Arc<Self>
in WasiFile
and associated traits
This is an attempt to apply @alexcrichton's comment [here](bytecodealliance#5326 (comment)) which proposed using `self: &Arc<Self>` in the `WasiFile` trait. This change, made as `self: Arc<Self>` here due to Rust method receiver limitations, affects many locations. E.g., `WasiDir` also needs to start using `Arc<Self>`, etc. This results in a slew of errors at all the use locations. This commit fixes up many of these but is marked "WIP" since not all are fixed; the latest challenge is deciding what the signature of `WasiFile::pollable` should be when the switch to `Arc<Self>` is made.
- Loading branch information
Showing
13 changed files
with
273 additions
and
265 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
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
Oops, something went wrong.