Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Session to allow users to mount it themselves #301

Closed
wants to merge 3 commits into from

Refactor Session to allow callers to mount it themselves

55a449d
Select commit
Loading
Failed to load commit list.
Closed

Refactor Session to allow users to mount it themselves #301

Refactor Session to allow callers to mount it themselves
55a449d
Select commit
Loading
Failed to load commit list.
Cirrus CI / FreeBSD failed Oct 11, 2024 in 2m 5s

Task Summary

Instruction build failed in 00:27

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:00 clone
✅ 01:36 setup
❌ 00:27 build

warning: unused variable: `io_vec`
  --> src/sys.rs:90:13
   |
90 |     let mut io_vec = libc::iovec {
   |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_io_vec`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `cmsg_buffer`
  --> src/sys.rs:95:13
   |
95 |     let mut cmsg_buffer = vec![0u8; cmsg_buffer_len as usize];
   |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cmsg_buffer`

warning: variable does not need to be mutable
  --> src/sys.rs:90:9
   |
90 |     let mut io_vec = libc::iovec {
   |         ----^^^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: variable does not need to be mutable
  --> src/sys.rs:95:9
   |
95 |     let mut cmsg_buffer = vec![0u8; cmsg_buffer_len as usize];
   |         ----^^^^^^^^^^^
   |         |
   |         help: remove this `mut`

error[E0381]: used binding `message` isn't initialized
   --> src/sys.rs:136:56
    |
96  |     let mut message: libc::msghdr;
    |         ----------- binding declared here but left uninitialized
...
136 |             result = libc::recvmsg(socket.as_raw_fd(), &mut message, 0);
    |                                                        ^^^^^^^^^^^^ `message` used here but it isn't initialized
    |
help: consider assigning a value
    |
96  |     let mut message: libc::msghdr = /* value */;
    |                                   +++++++++++++

Some errors have detailed explanations: E0308, E0381, E0425.
For more information about an error, try `rustc --explain E0308`.
warning: `fuser` (lib) generated 6 warnings
error: could not compile `fuser` (lib) due to 3 previous errors; 6 warnings emitted
warning: build failed, waiting for other jobs to finish...
warning: `fuser` (lib test) generated 6 warnings (6 duplicates)
error: could not compile `fuser` (lib test) due to 3 previous errors; 6 warnings emitted

Exit status: 101