File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2828 cargo :
2929 - name : " Clippy"
3030 cmd : clippy
31- args : --workspace --all-features --tests -- -D warnings
31+ args : --workspace --all-features --all-targets -- -D warnings
3232 rust : stable
3333 - name : " Formatting"
3434 cmd : fmt
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ async fn main() -> anyhow::Result<()> {
6464
6565 let messages = client2. fetch ( topic) . await ?. messages ;
6666 let message = messages
67- . get ( 0 )
67+ . first ( )
6868 . ok_or ( anyhow:: anyhow!( "fetch did not return any messages" ) ) ?;
6969
7070 println ! ( "[client2] received message: {}" , message. message) ;
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ async fn main() -> anyhow::Result<()> {
206206
207207 let messages = subscriber. fetch ( topic) . await ?. messages ;
208208 let message = messages
209- . get ( 0 )
209+ . first ( )
210210 . ok_or ( anyhow:: anyhow!( "fetch did not return any messages" ) ) ?;
211211 println ! ( "[subscriber] received message: {}" , message. message) ;
212212
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ clippy:
5353
5454 if command -v cargo-clippy >/ dev/ null; then
5555 echo ' ==> Running clippy'
56- cargo clippy --workspace --all-features --tests -- -D clippy::all -W clippy::style
56+ cargo clippy --workspace --all-features --all-targets -- -D clippy::all -W clippy::style
5757 else
5858 echo ' ==> clippy not found in PATH, skipping'
5959 echo ' ^^^^^^ To install `rustup component add clippy`, see https://github.com/rust-lang/rust-clippy for details'
You can’t perform that action at this time.
0 commit comments