Skip to content

Commit 6a59921

Browse files
authored
Server CI: treat warnings as errors and fix them. (#431)
We missed a couple of cargo warnings because of it.
1 parent 3c82711 commit 6a59921

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/server-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions-rs/cargo@v1
3636
with:
3737
command: clippy
38-
args: --manifest-path server/Cargo.toml --all --all-targets --all-features
38+
args: --manifest-path server/Cargo.toml --all --all-targets --all-features -- -D warnings
3939

4040
- name: rustfmt
4141
uses: actions-rs/cargo@v1

server/svix-server/src/queue/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ mod tests {
216216
.await
217217
.unwrap()
218218
.into_iter()
219-
.nth(0)
219+
.next()
220220
.unwrap();
221221

222222
assert_eq!(recv.task, mock_message("test".to_owned()));
@@ -248,7 +248,7 @@ mod tests {
248248
.await
249249
.unwrap()
250250
.into_iter()
251-
.nth(0)
251+
.next()
252252
.unwrap();
253253
assert_eq!(&recv.task, &mock_message("test".to_owned()));
254254

0 commit comments

Comments
 (0)