Commit Graph

175 Commits

Author SHA1 Message Date
yuk1ty ed022fc51a Capitalize the first letter in the Pinning chapter 2023-10-05 10:44:57 -07:00
Eric Holk 1ef20c71ba
Merge pull request #191 from Nereuxofficial/spawning
Added Spawning example
2023-07-06 16:36:45 -07:00
Eric Holk cdb914881e
Merge pull request #185 from rouzbehsbz/fa-IR
Add Persian/Farsi translation support
2023-07-06 16:33:40 -07:00
Bene 04e8b6c093 Added to dictionary 2023-05-05 09:13:55 +02:00
Bene d4d750523a Review Fixes. Thanks to @eholk 2023-05-05 09:11:10 +02:00
Nereuxofficial 87ac3cbdd3
Merge branch 'rust-lang:master' into spawning 2023-05-05 08:38:48 +02:00
Eric Holk 9c300510c4
Merge pull request #190 from hydra/add-pinning-compilation-error-details
Pinning - Add details of the compiler errors that occur when trying to use get_mut().
2023-03-30 10:50:05 -07:00
Eric Holk 41023fbb55
Merge pull request #194 from bravequickcleverfibreyarn/6_3_select_example
Obviously old comment removal
2023-03-30 10:47:56 -07:00
Eric Holk f4074aee6e
Merge pull request #193 from brunojppb/fix-remove-dereferencing
Fix: Remove unnecessary pointer dereferencing
2023-03-29 11:53:40 -07:00
JirCep fc9038c140 Obviously old comment removal 2023-02-13 22:25:41 +01:00
Bruno Paulino bac695815a
Remove unecessary pointer dereferencing 2023-02-12 17:49:16 +01:00
Eric Holk 6360806ade
Merge pull request #192 from Nereuxofficial/updated-dependencies
Updated async dependency
2023-02-03 12:29:34 -08:00
Bene c618588efc Updated async dependency 2023-02-03 12:15:45 +01:00
Bene cc31e99108 Fixed Sentence about channels 2023-02-03 10:38:43 +01:00
Bene 330d3a4a85 Added JoinHandle to dictionary 2023-02-02 15:53:22 +01:00
Bene 3889ec843b JoinHandle now in Codeblock and added note about channels 2023-02-02 14:36:24 +01:00
Bene d9f4e062fa Added `` around function 2023-02-02 14:24:40 +01:00
Bene 24861ba313 Reworded a sentence 2023-02-02 14:23:55 +01:00
Bene 0f396afde7 Removed test for local testing 2023-02-02 14:16:23 +01:00
Bene 6957e04fba Added Spawning example 2023-02-02 14:12:50 +01:00
Dominic Clifton 70ef3c1c68 Add details of the compiler errors that occur when trying to use get_mut(). 2023-02-01 18:29:55 +01:00
rouzbehsbz 4ae6ecf928
Add new translation
Hi I recently started to translate this book to Persian (Farsi). I would be very grateful if you add the translation.
2023-01-06 21:40:35 +03:30
Eric Holk e224ead527
Merge pull request #180 from harryhaaren/async_in_trait_update
07 workarounds/async in trait: update that nightly has mvp
2022-12-21 17:30:54 -08:00
Harry van Haaren 273aa2d423 07 workarounds/async in trait: update that nightly has mvp
Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
2022-12-16 20:16:34 +00:00
Emilia Hane 81c03c260f Remove unnecessary code from example 2022-07-30 20:17:35 +09:00
Taiki Endo a7974c8de8 Unify import style 2022-07-30 18:19:56 +09:00
Taiki Endo 1fb57ec5dd Add missing html files 2022-07-30 18:16:47 +09:00
Taiki Endo e409a5c10f Migrate to Rust 2021 2022-07-30 18:07:23 +09:00
Taiki Endo 919f1c2b77 Use install-action to install mdbook and mdbook-linkcheck 2022-07-30 18:00:09 +09:00
d2weber 9b936d43d9 Add time::Duration import to snippet 2022-07-24 20:34:19 +09:00
StevenJiang1110 9cdcfcbd8c Remove unused use-statement 2022-07-01 00:20:58 +09:00
Volker Weißmann 6dd9ce4199 Applied suggestion 2022-06-15 21:07:34 +09:00
Volker-Weissmann 07364d325b Update 01_chapter.md
Correct me if I'm wrong, but `Pin<&mut T>` does not guarantee that T won't be moved if `T: Unpin`.
2022-06-15 21:07:34 +09:00
doki cd52d085d8 simplify code in box pin 2022-05-12 10:47:03 +09:00
Samuel Tardieu 73cdf319ab Use write_all() to ensure that the whole response gets sent 2022-01-19 18:02:54 +09:00
Samuel Tardieu 9cc89b5a7e Use more modern interpolation 2022-01-16 18:50:02 +09:00
Samuel Tardieu 1881befc73 Remove explicit lifetimes where they could be elided 2022-01-16 18:49:53 +09:00
Jimskapt 563406a6ee New appendix for translations.
Linked to rust-lang/async-book#26 and rust-lang/async-book#63.
2021-12-30 07:33:13 +09:00
Xiami 19d1766c9e Fix a wrong type: Pin<mut Self> 2021-11-05 17:10:24 +09:00
Dmitry Savintsev 8b518af9af update cargo new command with --lib
The current `cargo new timer_future` command generates `src/main.rs`, not `src/lib.rs` mentioned later.
2021-10-31 02:25:41 +09:00
Dima Pristupa 66e6d20768 🚨 MockTcpStream::poll_write(): remove extra "return" keyword 2021-10-26 23:15:45 +09:00
Dima Pristupa 3bd440f4b6 🎨 Add blank lines between impl Write for MockTcpStream methods 2021-10-26 23:15:45 +09:00
Dima Pristupa f19a241d7d 🚨 Remove explicit lifetimes where they could be elided 2021-10-26 23:15:45 +09:00
Dima Pristupa bd3b893818 🚨 Remove extra "mut" modifiers 2021-10-26 23:15:45 +09:00
Dima Pristupa a38c701b9e 🎨 Add blank lines into an example with missing variable shadowing 2021-10-26 23:15:45 +09:00
Dima Pristupa 0faae314c1 🎨 Add blank lines between Test's methods 2021-10-26 23:15:45 +09:00
Dima Pristupa c7fa12f35a 🚨 Remove unused "std::pin::Pin" imports 2021-10-26 23:15:45 +09:00
Dima Pristupa 906fdef2ef 🚨 Fix a rust-clippy warning
* https://rust-lang.github.io/rust-clippy/master/#redundant_pattern_matching
2021-10-26 23:15:45 +09:00
Dima Pristupa a86d9c5f73 ✏️ Add spaces around em dashes 2021-10-26 23:15:45 +09:00
João Paiva ecc29abcd8 Minor changes to Applied: Build and executor
The instructions didn't mention which file to edit to add the dependency. Further, since the previous section (https://github.com/rust-lang/async-book/blob/master/src/02_execution/03_wakeups.md) used `cargo new timer_future` to create the project, we know the package name is `timer_future`.
2021-09-06 20:14:11 +09:00