-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Rust compilation with only borrowed structs (#519)
Fixes a mistake from #514
- Loading branch information
1 parent
8644713
commit 5fa5f53
Showing
2 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
interface http-fetch-imports { | ||
record request{ | ||
method: string, | ||
uri: string, | ||
body: string | ||
} | ||
|
||
record response{ | ||
status: u16, | ||
body: string | ||
} | ||
|
||
fetch: func(req: request) -> result<response> | ||
} | ||
|
||
default world http-fetch-simple { | ||
import http-fetch-simple: self.http-fetch-imports | ||
} |