factor erange handling into its own function #857
GitHub Actions / clippy
failed
Oct 11, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.81.0 (eeb90cda1 2024-09-04)
- cargo 1.81.0 (2dbb1af80 2024-08-20)
- clippy 0.1.81 (eeb90cd 2024-09-04)
Annotations
Check failure on line 55 in src/handlers.rs
github-actions / clippy
cannot borrow `f` as mutable, as it is not declared as mutable
error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable
--> src/handlers.rs:55:19
|
55 | let ret = f(buf);
| ^ cannot borrow as mutable
|
help: consider changing this to be mutable
|
50 | fn call_with_erange_handling<F>(buf: &mut Vec<c_char>, mut f: F) -> i32
| +++
Loading