File tree Expand file tree Collapse file tree 7 files changed +23
-8
lines changed Expand file tree Collapse file tree 7 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1515
1616jobs :
1717 test :
18+ name : test ${{ matrix.channel }}-${{ matrix.target }}
1819 runs-on : ${{ matrix.os }}
1920 steps :
2021 - uses : actions/checkout@v4
4647 log-level : warn
4748 command : check
4849 arguments : --all-features
50+ - name : Build Docs
51+ uses : actions-rs/cargo@v1
52+ with :
53+ command : doc
54+ args : --all
4955 - name : Run tests
5056 env :
5157 CHANNEL : ${{ matrix.channel }}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ members = [
88]
99
1010[workspace .package ]
11- version = " 0.6.14 "
11+ version = " 0.6.15 "
1212edition = " 2021"
13131414repository = " https://github.com/acl-dev/open-coroutine"
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ fn main() {
136136}
137137```
138138
139- ## 🪽 Advanced Usage
139+ ## 🪶 Advanced Usage
140140
141141### create a task with priority
142142
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ fn main() {
132132}
133133```
134134
135- ## 🪽 进阶使用
135+ ## 🪶 进阶使用
136136
137137### 创建具有优先级的任务
138138
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ impl<T: Debug> OrderedWorkStealQueue<T> {
104104 . store ( self . len ( ) . saturating_sub ( 1 ) , Ordering :: Release ) ;
105105 return Some ( item) ;
106106 }
107- Steal :: Retry => continue ,
107+ Steal :: Retry => { }
108108 Steal :: Empty => break ,
109109 }
110110 }
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl<T: Debug> WorkStealQueue<T> {
7474 . store ( self . len ( ) . saturating_sub ( 1 ) , Ordering :: Release ) ;
7575 return Some ( item) ;
7676 }
77- Steal :: Retry => continue ,
77+ Steal :: Retry => { }
7878 Steal :: Empty => return None ,
7979 }
8080 }
Original file line number Diff line number Diff line change @@ -81,9 +81,7 @@ fn main() {
8181 ) ;
8282 let crates_parent = if crates_parent_dirs. len ( ) == 1 {
8383 crates_parent_dirs. first ( ) . expect ( "host dir not found" )
84- } else {
85- let rustup_dist_server =
86- var ( "RUSTUP_DIST_SERVER" ) . expect ( "RUSTUP_DIST_SERVER not found" ) ;
84+ } else if let Ok ( rustup_dist_server) = var ( "RUSTUP_DIST_SERVER" ) {
8785 let host = rustup_dist_server
8886 . split ( "://" )
8987 . last ( )
@@ -109,6 +107,17 @@ fn main() {
109107 } )
110108 . expect ( "host dir not found" )
111109 } )
110+ } else {
111+ crates_parent_dirs
112+ . iter ( )
113+ . find ( |entry| {
114+ entry
115+ . file_name ( )
116+ . to_string_lossy ( )
117+ . to_string ( )
118+ . contains ( "crates.io" )
119+ } )
120+ . expect ( "host dir not found" )
112121 }
113122 . file_name ( )
114123 . to_string_lossy ( )
You can’t perform that action at this time.
0 commit comments