File tree 4 files changed +23
-23
lines changed 4 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ jobs:
103
103
with :
104
104
components : clippy
105
105
- name : Clippy
106
- run : cargo clippy --all-targets --all-features -- --allow clippy::mixed-attributes-style --allow clippy::unused-io-amount -D warnings
106
+ run : cargo clippy --all-targets --all-features -- --allow clippy::mixed-attributes-style --allow clippy::unused-io-amount --allow clippy::needless-lifetimes - D warnings
107
107
Docs :
108
108
runs-on : ubuntu-latest
109
109
timeout-minutes : 10
@@ -135,7 +135,8 @@ jobs:
135
135
- aarch64-apple-darwin
136
136
- aarch64-apple-ios
137
137
- aarch64-apple-tvos
138
- - aarch64-apple-visionos
138
+ # Can't build standard library.
139
+ # - aarch64-apple-visionos
139
140
- aarch64-apple-watchos
140
141
- aarch64-linux-android
141
142
- aarch64-unknown-freebsd
@@ -151,11 +152,12 @@ jobs:
151
152
- arm64_32-apple-watchos
152
153
- armv7-sony-vita-newlibeabihf
153
154
- i686-unknown-linux-gnu
154
- - i686-unknown-hurd-gnu
155
+ # TODO: reenable <https://github.com/tokio-rs/mio/issues/1844>.
156
+ # - i686-unknown-hurd-gnu
155
157
# - powerpc64-ibm-aix Enable CI runs once aix has full stdlib upstreamed
156
158
- riscv32imc-esp-espidf
157
159
- sparcv9-sun-solaris
158
- - wasm32-wasi
160
+ - wasm32-wasip1
159
161
- x86_64-apple-darwin
160
162
- x86_64-apple-ios
161
163
- x86_64-pc-nto-qnx710
Original file line number Diff line number Diff line change
1
+ # 1.0.3
2
+
3
+ * Implement more I/O safety traits
4
+ (https://github.com/tokio-rs/mio/pull/1831 ).
5
+ * Remove hermit-abi dependency, now using libc
6
+ (https://github.com/tokio-rs/mio/pull/1830 ).
7
+ * Use ` poll(2) ` implementation on AIX, removing the need for using
8
+ ` mio_unsupported_force_poll_poll `
9
+ (https://github.com/tokio-rs/mio/pull/1833 ).
10
+
1
11
# 1.0.2
2
12
3
13
* Work around eventfd bug on illumos
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ name = "mio"
5
5
# When releasing to crates.io:
6
6
# - Update CHANGELOG.md.
7
7
# - Create git tag
8
- version = " 1.0.2 "
8
+ version = " 1.0.3 "
9
9
license = " MIT"
10
10
authors = [
11
11
" Carl Lerche <me@carllerche.com>" ,
Original file line number Diff line number Diff line change @@ -205,12 +205,8 @@ fn read() {
205
205
for event in & events {
206
206
assert_eq ! ( event. token( ) , Token ( 1 ) ) ;
207
207
let mut buf = [ 0 ; 1024 ] ;
208
- loop {
209
- if let Ok ( amt) = data. socket . read ( & mut buf) {
210
- data. amt += amt;
211
- } else {
212
- break ;
213
- }
208
+ while let Ok ( amt) = data. socket . read ( & mut buf) {
209
+ data. amt += amt;
214
210
if data. amt >= N {
215
211
data. shutdown = true ;
216
212
break ;
@@ -270,12 +266,8 @@ fn peek() {
270
266
Err ( err) => panic ! ( "unexpected error: {}" , err) ,
271
267
}
272
268
273
- loop {
274
- if let Ok ( amt) = data. socket . read ( & mut buf) {
275
- data. amt += amt;
276
- } else {
277
- break ;
278
- }
269
+ while let Ok ( amt) = data. socket . read ( & mut buf) {
270
+ data. amt += amt;
279
271
if data. amt >= N {
280
272
data. shutdown = true ;
281
273
break ;
@@ -329,12 +321,8 @@ fn write() {
329
321
for event in & events {
330
322
assert_eq ! ( event. token( ) , Token ( 1 ) ) ;
331
323
let buf = [ 0 ; 1024 ] ;
332
- loop {
333
- if let Ok ( amt) = data. socket . write ( & buf) {
334
- data. amt += amt;
335
- } else {
336
- break ;
337
- }
324
+ while let Ok ( amt) = data. socket . write ( & buf) {
325
+ data. amt += amt;
338
326
if data. amt >= N {
339
327
data. shutdown = true ;
340
328
break ;
You can’t perform that action at this time.
0 commit comments