-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rust): Scope function definitions marked
async
- Loading branch information
Showing
4 changed files
with
69 additions
and
0 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
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,55 @@ | ||
--- | ||
source: tests/langs/mod.rs | ||
expression: inscope_parts | ||
--- | ||
- n: 182 | ||
l: "async fn async_main() -> Result<(), ()> {\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 183 | ||
l: " // Open a connection to the mini-redis address.\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 184 | ||
l: " let mut client = client::connect(\"127.0.0.1:6379\").await?;\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 185 | ||
l: "\n" | ||
m: ^^ | ||
- n: 186 | ||
l: " // Set the key \"hello\" with value \"world\"\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 187 | ||
l: " client.set(\"hello\", \"world\".into()).await?;\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 188 | ||
l: "\n" | ||
m: ^^ | ||
- n: 189 | ||
l: " // Get key \"hello\"\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 190 | ||
l: " let result = client.get(\"hello\").await?;\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 191 | ||
l: "\n" | ||
m: ^^ | ||
- n: 192 | ||
l: " println!(\"got value from the server; result={:?}\", result);\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 193 | ||
l: "\n" | ||
m: ^^ | ||
- n: 194 | ||
l: " Ok(())\n" | ||
m: ^^^^^^^^^^^^ | ||
- n: 195 | ||
l: "}\n" | ||
m: "^ " | ||
- n: 197 | ||
l: "pub async fn async_pub_fn() -> Result<(), ()> {\n" | ||
m: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- n: 198 | ||
l: " Ok(())\n" | ||
m: ^^^^^^^^^^^^ | ||
- n: 199 | ||
l: "}\n" | ||
m: "^ " |