Skip to content

factor erange handling into its own function #858

factor erange handling into its own function

factor erange handling into its own function #858

Triggered via pull request October 11, 2024 22:40
Status Failure
Total duration 1m 48s
Artifacts

test.yml

on: pull_request
build-debian-package-11
1m 38s
build-debian-package-11
build-debian-package-12
1m 10s
build-debian-package-12
build-debian-package-13
1m 9s
build-debian-package-13
build-debian-11
58s
build-debian-11
build-debian-12
47s
build-debian-12
build-debian-13
43s
build-debian-13
clippy
14s
clippy
run-ci-debian-11
0s
run-ci-debian-11
run-enhanced-ci-debian-11
0s
run-enhanced-ci-debian-11
run-ci-debian-12
0s
run-ci-debian-12
run-ci-ubuntu-latest
0s
run-ci-ubuntu-latest
run-ci-debian-13
0s
run-ci-debian-13
create-release
0s
create-release
Fit to window
Zoom out
Zoom in

Annotations

63 errors and 2 warnings
cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure: src/handlers.rs#L354
error[E0596]: cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure --> src/handlers.rs:354:21 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | - change this to accept `FnMut` instead of `Fn` ... 350 | let ret = call_with_erange_handling(&mut buffer, |buffer| unsafe { | ------------------------- -------- in this closure | | | expects `Fn` instead of `FnMut` ... 354 | &mut domain, | ^^^^^^^^^^^ cannot borrow as mutable
cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure: src/handlers.rs#L353
error[E0596]: cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure --> src/handlers.rs:353:21 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | - change this to accept `FnMut` instead of `Fn` ... 350 | let ret = call_with_erange_handling(&mut buffer, |buffer| unsafe { | ------------------------- -------- in this closure | | | expects `Fn` instead of `FnMut` ... 353 | &mut user, | ^^^^^^^^^ cannot borrow as mutable
cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure: src/handlers.rs#L352
error[E0596]: cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure --> src/handlers.rs:352:21 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | - change this to accept `FnMut` instead of `Fn` ... 350 | let ret = call_with_erange_handling(&mut buffer, |buffer| unsafe { | ------------------------- -------- in this closure | | | expects `Fn` instead of `FnMut` 351 | getnetgrent_r( 352 | &mut host, | ^^^^^^^^^ cannot borrow as mutable
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure: src/handlers.rs#L219
error[E0596]: cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure --> src/handlers.rs:219:17 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | - change this to accept `FnMut` instead of `Fn` ... 212 | let ret = call_with_erange_handling(&mut buffer, |buffer| unsafe { | ------------------------- -------- in this closure | | | expects `Fn` instead of `FnMut` ... 219 | &mut result, | ^^^^^^^^^^^ cannot borrow as mutable
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure: src/handlers.rs#L216
error[E0596]: cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure --> src/handlers.rs:216:17 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | - change this to accept `FnMut` instead of `Fn` ... 212 | let ret = call_with_erange_handling(&mut buffer, |buffer| unsafe { | ------------------------- -------- in this closure | | | expects `Fn` instead of `FnMut` ... 216 | &mut result_buf, | ^^^^^^^^^^^^^^^ cannot borrow as mutable
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure: src/handlers.rs#L161
error[E0596]: cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure --> src/handlers.rs:161:17 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | - change this to accept `FnMut` instead of `Fn` ... 154 | let ret = call_with_erange_handling(&mut buffer, |buffer| unsafe { | ------------------------- -------- in this closure | | | expects `Fn` instead of `FnMut` ... 161 | &mut result, | ^^^^^^^^^^^ cannot borrow as mutable
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure: src/handlers.rs#L158
error[E0596]: cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure --> src/handlers.rs:158:17 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | - change this to accept `FnMut` instead of `Fn` ... 154 | let ret = call_with_erange_handling(&mut buffer, |buffer| unsafe { | ------------------------- -------- in this closure | | | expects `Fn` instead of `FnMut` ... 158 | &mut result_buf, | ^^^^^^^^^^^^^^^ cannot borrow as mutable
variable does not need to be mutable: src/handlers.rs#L50
error: variable does not need to be mutable --> src/handlers.rs:50:56 | 50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32 | ----^ | | | help: remove this `mut` | = note: `-D unused-mut` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_mut)]`
clippy
Clippy had exited with the 101 exit code
build-debian-13
variable does not need to be mutable
build-debian-13
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-13
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-13
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-13
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-13
cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure
build-debian-13
cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure
build-debian-13
cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure
build-debian-13
Process completed with exit code 101.
build-debian-12
variable does not need to be mutable
build-debian-12
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-12
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-12
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-12
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-12
cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure
build-debian-12
cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure
build-debian-12
cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure
build-debian-12
Process completed with exit code 101.
build-debian-11
variable does not need to be mutable
build-debian-11
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-11
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-11
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-11
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-11
cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure
build-debian-11
cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure
build-debian-11
cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure
build-debian-11
Process completed with exit code 101.
build-debian-package-12
variable does not need to be mutable
build-debian-package-12
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-12
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-12
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-12
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-12
cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-12
cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-12
cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-12
Process completed with exit code 2.
build-debian-package-13
variable does not need to be mutable
build-debian-package-13
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-13
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-13
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-13
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-13
cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-13
cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-13
cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-13
Process completed with exit code 2.
build-debian-package-11
variable does not need to be mutable
build-debian-package-11
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-11
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-11
cannot borrow `result_buf` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-11
cannot borrow `result` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-11
cannot borrow `host` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-11
cannot borrow `user` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-11
cannot borrow `domain` as mutable, as it is a captured variable in a `Fn` closure
build-debian-package-11
Process completed with exit code 2.
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/