Skip to content

chore: Madvise Kernel that we are reading sequentially #160

chore: Madvise Kernel that we are reading sequentially

chore: Madvise Kernel that we are reading sequentially #160

GitHub Actions / clippy failed May 30, 2024 in 0s

clippy

7 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 7
Warning 0
Note 0
Help 0

Versions

  • rustc 1.80.0-nightly (debd22da6 2024-05-29)
  • cargo 1.80.0-nightly (431db31d0 2024-05-28)
  • clippy 0.1.80 (debd22d 2024-05-29)

Annotations

Check failure on line 267 in breakwater/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function takes 7 arguments but 6 arguments were supplied

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
   --> breakwater/src/tests.rs:267:5
    |
267 |     handle_connection(
    |     ^^^^^^^^^^^^^^^^^
...
273 |         None,
    |         ---- an argument of type `usize` is missing
    |
note: function defined here
   --> breakwater/src/server.rs:137:14
    |
137 | pub async fn handle_connection(
    |              ^^^^^^^^^^^^^^^^^
138 |     mut stream: impl AsyncReadExt + AsyncWriteExt + Send + Unpin,
    |     ------------------------------------------------------------
139 |     ip: IpAddr,
    |     ----------
140 |     fb: Arc<FrameBuffer>,
    |     --------------------
141 |     statistics_tx: mpsc::Sender<StatisticsEvent>,
    |     --------------------------------------------
142 |     page_size: usize,
    |     ----------------
143 |     network_buffer_size: usize,
    |     --------------------------
144 |     connection_dropped_tx: Option<mpsc::UnboundedSender<IpAddr>>,
    |     ------------------------------------------------------------
help: provide the argument
    |
267 |     handle_connection(&mut stream, ip, Arc::clone(&fb), statistics_channel.0.clone(), DEFAULT_NETWORK_BUFFER_SIZE, /* usize */, None)
    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check failure on line 253 in breakwater/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function takes 7 arguments but 6 arguments were supplied

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
   --> breakwater/src/tests.rs:253:5
    |
253 |     handle_connection(
    |     ^^^^^^^^^^^^^^^^^
...
259 |         None,
    |         ---- an argument of type `usize` is missing
    |
note: function defined here
   --> breakwater/src/server.rs:137:14
    |
137 | pub async fn handle_connection(
    |              ^^^^^^^^^^^^^^^^^
138 |     mut stream: impl AsyncReadExt + AsyncWriteExt + Send + Unpin,
    |     ------------------------------------------------------------
139 |     ip: IpAddr,
    |     ----------
140 |     fb: Arc<FrameBuffer>,
    |     --------------------
141 |     statistics_tx: mpsc::Sender<StatisticsEvent>,
    |     --------------------------------------------
142 |     page_size: usize,
    |     ----------------
143 |     network_buffer_size: usize,
    |     --------------------------
144 |     connection_dropped_tx: Option<mpsc::UnboundedSender<IpAddr>>,
    |     ------------------------------------------------------------
help: provide the argument
    |
253 |     handle_connection(&mut stream, ip, Arc::clone(&fb), statistics_channel.0.clone(), DEFAULT_NETWORK_BUFFER_SIZE, /* usize */, None)
    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check failure on line 239 in breakwater/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function takes 7 arguments but 6 arguments were supplied

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
   --> breakwater/src/tests.rs:239:5
    |
239 |     handle_connection(
    |     ^^^^^^^^^^^^^^^^^
...
245 |         None,
    |         ---- an argument of type `usize` is missing
    |
note: function defined here
   --> breakwater/src/server.rs:137:14
    |
137 | pub async fn handle_connection(
    |              ^^^^^^^^^^^^^^^^^
138 |     mut stream: impl AsyncReadExt + AsyncWriteExt + Send + Unpin,
    |     ------------------------------------------------------------
139 |     ip: IpAddr,
    |     ----------
140 |     fb: Arc<FrameBuffer>,
    |     --------------------
141 |     statistics_tx: mpsc::Sender<StatisticsEvent>,
    |     --------------------------------------------
142 |     page_size: usize,
    |     ----------------
143 |     network_buffer_size: usize,
    |     --------------------------
144 |     connection_dropped_tx: Option<mpsc::UnboundedSender<IpAddr>>,
    |     ------------------------------------------------------------
help: provide the argument
    |
239 |     handle_connection(&mut stream, ip, Arc::clone(&fb), statistics_channel.0.clone(), DEFAULT_NETWORK_BUFFER_SIZE, /* usize */, None)
    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check failure on line 225 in breakwater/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function takes 7 arguments but 6 arguments were supplied

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
   --> breakwater/src/tests.rs:225:5
    |
225 |     handle_connection(
    |     ^^^^^^^^^^^^^^^^^
...
231 |         None,
    |         ---- an argument of type `usize` is missing
    |
note: function defined here
   --> breakwater/src/server.rs:137:14
    |
137 | pub async fn handle_connection(
    |              ^^^^^^^^^^^^^^^^^
138 |     mut stream: impl AsyncReadExt + AsyncWriteExt + Send + Unpin,
    |     ------------------------------------------------------------
139 |     ip: IpAddr,
    |     ----------
140 |     fb: Arc<FrameBuffer>,
    |     --------------------
141 |     statistics_tx: mpsc::Sender<StatisticsEvent>,
    |     --------------------------------------------
142 |     page_size: usize,
    |     ----------------
143 |     network_buffer_size: usize,
    |     --------------------------
144 |     connection_dropped_tx: Option<mpsc::UnboundedSender<IpAddr>>,
    |     ------------------------------------------------------------
help: provide the argument
    |
225 |     handle_connection(&mut stream, ip, Arc::clone(&fb), statistics_channel.0.clone(), DEFAULT_NETWORK_BUFFER_SIZE, /* usize */, None)
    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check failure on line 151 in breakwater/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function takes 7 arguments but 6 arguments were supplied

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
   --> breakwater/src/tests.rs:151:5
    |
151 |     handle_connection(
    |     ^^^^^^^^^^^^^^^^^
...
157 |         None,
    |         ---- an argument of type `usize` is missing
    |
note: function defined here
   --> breakwater/src/server.rs:137:14
    |
137 | pub async fn handle_connection(
    |              ^^^^^^^^^^^^^^^^^
138 |     mut stream: impl AsyncReadExt + AsyncWriteExt + Send + Unpin,
    |     ------------------------------------------------------------
139 |     ip: IpAddr,
    |     ----------
140 |     fb: Arc<FrameBuffer>,
    |     --------------------
141 |     statistics_tx: mpsc::Sender<StatisticsEvent>,
    |     --------------------------------------------
142 |     page_size: usize,
    |     ----------------
143 |     network_buffer_size: usize,
    |     --------------------------
144 |     connection_dropped_tx: Option<mpsc::UnboundedSender<IpAddr>>,
    |     ------------------------------------------------------------
help: provide the argument
    |
151 |     handle_connection(&mut stream, ip, fb.clone(), statistics_channel.0, DEFAULT_NETWORK_BUFFER_SIZE, /* usize */, None)
    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check failure on line 123 in breakwater/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function takes 7 arguments but 6 arguments were supplied

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
   --> breakwater/src/tests.rs:123:5
    |
123 |     handle_connection(
    |     ^^^^^^^^^^^^^^^^^
...
129 |         None,
    |         ---- an argument of type `usize` is missing
    |
note: function defined here
   --> breakwater/src/server.rs:137:14
    |
137 | pub async fn handle_connection(
    |              ^^^^^^^^^^^^^^^^^
138 |     mut stream: impl AsyncReadExt + AsyncWriteExt + Send + Unpin,
    |     ------------------------------------------------------------
139 |     ip: IpAddr,
    |     ----------
140 |     fb: Arc<FrameBuffer>,
    |     --------------------
141 |     statistics_tx: mpsc::Sender<StatisticsEvent>,
    |     --------------------------------------------
142 |     page_size: usize,
    |     ----------------
143 |     network_buffer_size: usize,
    |     --------------------------
144 |     connection_dropped_tx: Option<mpsc::UnboundedSender<IpAddr>>,
    |     ------------------------------------------------------------
help: provide the argument
    |
123 |     handle_connection(&mut stream, ip, fb, statistics_channel.0, DEFAULT_NETWORK_BUFFER_SIZE, /* usize */, None)
    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check failure on line 57 in breakwater/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function takes 7 arguments but 6 arguments were supplied

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
   --> breakwater/src/tests.rs:57:5
    |
57  |     handle_connection(
    |     ^^^^^^^^^^^^^^^^^
...
63  |         None,
    |         ---- an argument of type `usize` is missing
    |
note: function defined here
   --> breakwater/src/server.rs:137:14
    |
137 | pub async fn handle_connection(
    |              ^^^^^^^^^^^^^^^^^
138 |     mut stream: impl AsyncReadExt + AsyncWriteExt + Send + Unpin,
    |     ------------------------------------------------------------
139 |     ip: IpAddr,
    |     ----------
140 |     fb: Arc<FrameBuffer>,
    |     --------------------
141 |     statistics_tx: mpsc::Sender<StatisticsEvent>,
    |     --------------------------------------------
142 |     page_size: usize,
    |     ----------------
143 |     network_buffer_size: usize,
    |     --------------------------
144 |     connection_dropped_tx: Option<mpsc::UnboundedSender<IpAddr>>,
    |     ------------------------------------------------------------
help: provide the argument
    |
57  |     handle_connection(&mut stream, ip, fb, statistics_channel.0, DEFAULT_NETWORK_BUFFER_SIZE, /* usize */, None)
    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~