Kian-Meng Ang
fc69db1703
Fix typos
2022-06-30 20:46:04 +08:00
Josh Triplett
abbf944371
Fix CI errors about unused-macro-rules
...
float_product and float_sum had unused rules, because they weren't
successfully using their second branch, and weren't successfully
defining wrapping types.
That then led to the discovery that those types *can't* be defined,
because std doesn't actually define any operations on `Wrapping<f32>` or
`Wrapping<f64>`. So, drop those portions of the float macros.
Fix that, and in the process, unify the integer and float macros.
2022-06-01 20:56:08 -07:00
cuishuang
ab112d5db6
fix some typos
...
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-27 14:18:31 +08:00
Nicholas Nethercote
01ede03e0a
Reindent de-macrofied code.
...
This commit only affects whitespace; `git diff -w` for it is empty.
2022-03-11 13:16:30 +11:00
Nicholas Nethercote
1146c66f1b
Remove extension_trait
.
...
At this point, `extension_trait` is basically an expensive no-op. This
commit removes it. The next commit will adjust the indentation.
2022-03-11 13:14:40 +11:00
Nicholas Nethercote
2dde8820fa
Remove what's left of the first trait in extension_trait
.
2022-03-11 13:14:03 +11:00
Nicholas Nethercote
1c70420c5a
Move the base trait re-export outside of extension_trait
.
2022-03-11 13:12:56 +11:00
Nicholas Nethercote
c626a69670
Move the blanket impl
outside of extension_trait
.
2022-03-11 13:12:08 +11:00
Nicholas Nethercote
6b3667d1a4
Remove unnecessary types in extension_trait
.
...
The remaining type requires the square brackets (for now) because a `ty`
cannot immediately precede a `$(tt)*`.
2022-03-11 13:10:28 +11:00
Nicholas Nethercote
c10d2d3a6f
Simplify the first trait in extension_trait
.
...
The body and doc comment are no longer used.
2022-03-11 13:09:30 +11:00
Nicholas Nethercote
ed2fcce557
Remove docs
-only features from extension_trait
.
...
This is the `@doc` rules, the shim trait impls, and the imports.
2022-03-11 12:46:59 +11:00
Nicholas Nethercote
e19ab626a1
Remove unused parameter from extension_trait!
rules.
...
Two of the rules have `(+ $lt:lifetime)?` that is not used on the RHS
and serves no useful purpose. This commit removes it.
2022-03-11 09:31:01 +11:00
Dmitry S
5e8d1e6e83
stream: correct iterators in doc examples
...
Correct the iterators used in examples to produce
the described output.
2021-11-07 22:37:24 +01:00
Lucas Riutzel
e11a7ecf36
Fix typo in DoubleEndedStream docs
2021-01-24 21:18:14 +00:00
surechen
47b22fff56
edit Small typo for Stream
2020-12-30 17:14:18 +08:00
hhggit
3bb121dc1e
reset timer after timeout was ready
2020-11-28 09:07:14 +08:00
Taiki Endo
e8dc2c0571
Fix double drop in StreamExt::cycle
2020-11-02 07:10:18 +09:00
Takayuki Maeda
04bb83f86e
fix clippy warnings
2020-09-02 17:37:28 +09:00
Yoshua Wuyts
c82b1efb69
fix(stream): add send guards on collect
...
Closes #639
Co-authored-by: dignifiedquire <me@dignifiedquire.com>
2020-06-27 16:46:14 +02:00
Friedel Ziegelmayer
5f418f07ac
Merge pull request #819 from async-rs/fix-sockets
2020-06-18 13:58:18 +02:00
dignifiedquire
1c1c168e1b
fix(timer): ensure the runtime is working for timers
2020-06-18 12:37:14 +02:00
Oleg Nosov
42425f6c1a
Another hotfix
2020-06-14 18:42:18 +03:00
Oleg Nosov
df22d87d09
Removed unnecessary links + hotfix
2020-06-12 18:21:16 +03:00
Oleg Nosov
924e5a3f41
Merge remote-tracking branch 'origin/master' into flat_map_fixed
2020-06-12 18:13:01 +03:00
Oleg Nosov
2323ac9a8e
Apply suggestions from code review
...
Co-authored-by: nasa <htilcs1115@gmail.com>
2020-06-12 18:03:07 +03:00
k-nasa
d30603affe
Merge branch 'master' into fix_doc_test
2020-05-20 13:50:39 +09:00
dignifiedquire
e4df1405c1
feat: add basic wasm support
2020-05-02 20:27:50 +02:00
dignifiedquire
10c8b9a6d8
silence must use
2020-05-02 20:27:50 +02:00
dignifiedquire
ab9d6554aa
switch to smol::Timer
2020-05-02 20:27:50 +02:00
Devashish Dixit
68fa054517
Update futures-timer to 3.0.2
2020-03-30 19:30:00 +08:00
k-nasa
c0f18600cf
run ignored test
2020-03-18 23:07:07 +09:00
k-nasa
6c8237276b
fix doc test
2020-03-18 23:02:59 +09:00
nasa
cc19592f80
Revert "Stabilize most stream method and remove unnecessary macros"
2020-03-12 18:34:09 +09:00
k-nasa
f31878655e
fix: Stabilize stream method
2020-03-04 08:30:45 +09:00
k-nasa
75223905bd
fix: Stabilize stream most method
2020-03-03 23:12:09 +09:00
Oleg Nosov
d7cab38b67
core
=> std
2020-02-08 15:49:01 +03:00
Oleg Nosov
32068942a6
Fixed flatten
2020-02-08 15:44:25 +03:00
Oleg Nosov
303ac90b7c
Fixed flat_map
2020-02-07 22:12:42 +03:00
k-nasa
22d929d481
fix import Future
2020-01-28 15:58:46 +09:00
k-nasa
d622ec5d35
feat: Make the stream module no_std
2020-01-28 15:58:46 +09:00
k-nasa
880b7ee987
remove crate::prelude import
2020-01-28 15:58:46 +09:00
k-nasa
ee102dfc9e
docs: Add stream::timeout example when timeout error
2020-01-15 10:41:39 +09:00
k-nasa
f53fcbb706
test,docs: Add stream::pending example code
2020-01-14 10:18:14 +09:00
k-nasa
e9357c0307
style: Run cargo fmt
2020-01-14 09:49:34 +09:00
Qifan Lu
879e14c6ab
Remove size_hint from Stream impl
2020-01-14 09:41:43 +09:00
Qifan Lu
f8dd3d9816
Add stream::pending::{pending, Pending}
2020-01-14 09:41:43 +09:00
nasa
0ed0d63094
Remove unnecessary trait bound on FlatMap ( #651 )
...
* Remove unnecessary trait bound on FlatMap
* test: upgrade test code
2020-01-13 19:49:52 +01:00
dignifiedquire
5bf3d95313
feat: do not require default feature for unstable
2020-01-11 11:44:51 +01:00
Stefano Probst
c3d5dba1b5
Fix typo in stream documentation
2019-12-28 17:27:37 +01:00
Yoshua Wuyts
b3942ecfa8
remove tokio mention
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-12-24 14:39:55 +01:00