File tree 3 files changed +7
-4
lines changed 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ jobs:
112
112
os : [ubuntu-latest, windows-latest]
113
113
# When updating this, the reminder to update the minimum supported
114
114
# Rust version in Cargo.toml.
115
- rust : ['1.48 ']
115
+ rust : ['1.63 ']
116
116
steps :
117
117
- uses : actions/checkout@v3
118
118
- name : Install Rust
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name = "async-io"
6
6
version = " 1.13.0"
7
7
authors = [
" Stjepan Glavina <[email protected] >" ]
8
8
edition = " 2018"
9
- rust-version = " 1.48 "
9
+ rust-version = " 1.63 "
10
10
description = " Async I/O and timers"
11
11
license = " Apache-2.0 OR MIT"
12
12
repository = " https://github.com/smol-rs/async-io"
@@ -49,7 +49,7 @@ signal-hook = "0.3"
49
49
tempfile = " 3"
50
50
51
51
[target .'cfg(target_os = "linux")' .dev-dependencies ]
52
- inotify = { version = " 0.10" , default-features = false }
52
+ inotify = { version = " 0.10.1 " , default-features = false }
53
53
timerfd = " 1"
54
54
55
55
[target .'cfg(windows)' .dev-dependencies ]
Original file line number Diff line number Diff line change @@ -37,7 +37,10 @@ fn main() -> std::io::Result<()> {
37
37
future:: block_on ( async {
38
38
// Watch events in the current directory.
39
39
let mut inotify = Async :: new ( Inotify :: init ( ) ?) ?;
40
- inotify. get_mut ( ) . add_watch ( "." , WatchMask :: ALL_EVENTS ) ?;
40
+ inotify
41
+ . get_mut ( )
42
+ . watches ( )
43
+ . add ( "." , WatchMask :: ALL_EVENTS ) ?;
41
44
println ! ( "Watching for filesystem events in the current directory..." ) ;
42
45
println ! ( "Try opening a file to trigger some events." ) ;
43
46
println ! ( ) ;
You can’t perform that action at this time.
0 commit comments