Skip to content

Commit ba314cf

Browse files
authored
Fix warnings and deny warnings on CI (#41)
1 parent 66840ea commit ba314cf

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
on: [push, pull_request]
22

3-
name: Continuous integration
3+
name: CI
4+
5+
env:
6+
RUSTFLAGS: -Dwarnings
7+
RUST_BACKTRACE: 1
48

59
jobs:
610
check:

async-stream/examples/tcp_accept.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use tokio::net::TcpListener;
55

66
#[tokio::main]
77
async fn main() {
8-
let mut listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
8+
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
99

1010
let incoming = stream! {
1111
loop {

async-stream/tests/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async fn return_stream() {
101101

102102
#[tokio::test]
103103
async fn consume_channel() {
104-
let (mut tx, mut rx) = mpsc::channel(10);
104+
let (tx, mut rx) = mpsc::channel(10);
105105

106106
let s = stream! {
107107
while let Some(v) = rx.recv().await {

0 commit comments

Comments
 (0)