Skip to content

Commit

Permalink
do clippy for all
Browse files Browse the repository at this point in the history
Signed-off-by: Ric Li <[email protected]>
  • Loading branch information
ricmli committed Jan 26, 2024
1 parent e1c9486 commit c62bb5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ecosystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Build Rust binding
run: |
cd rust/
cargo clippy
cargo clippy --all-targets
cargo build --all-targets --verbose
cd imtl-sys
cargo test --verbose
2 changes: 1 addition & 1 deletion rust/examples/video-rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn main() -> Result<()> {
if let (Some(ref mut texture), Some(ref mut canvas)) = (&mut texture, &mut canvas) {
texture.update(None, &frame, args.width as usize * 2)?;
canvas.clear();
canvas.copy(&texture, None, None).unwrap();
canvas.copy(texture, None, None).unwrap();
canvas.present();
}
}
Expand Down
4 changes: 2 additions & 2 deletions rust/examples/video-tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ fn main() -> Result<()> {
match video_tx.fill_next_frame(frame) {
Ok(_) => {
if let (Some(ref mut texture), Some(ref mut canvas)) = (&mut texture, &mut canvas) {
texture.update(None, &frame, args.width as usize * 2)?;
texture.update(None, frame, args.width as usize * 2)?;
canvas.clear();
canvas.copy(&texture, None, None).unwrap();
canvas.copy(texture, None, None).unwrap();
canvas.present();
}
frame = frames.next().unwrap();
Expand Down

0 comments on commit c62bb5c

Please sign in to comment.