lint #4734
Annotations
2 errors and 2 warnings
mismatched types:
core/tauri/src/protocol/tauri.rs#L175
error[E0308]: mismatched types
--> core/tauri/src/protocol/tauri.rs:175:28
|
175 | *response.body_mut() = body.as_bytes().to_vec();
| -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Cow<'_, [u8]>`, found `Vec<u8>`
| |
| expected due to the type of this binding
|
= note: expected enum `std::borrow::Cow<'static, [u8]>`
found struct `std::vec::Vec<u8>`
help: call `Into::into` on this expression to convert `std::vec::Vec<u8>` into `std::borrow::Cow<'static, [u8]>`
|
175 | *response.body_mut() = body.as_bytes().to_vec().into();
| +++++++
|
mismatched types:
core/tauri/src/protocol/tauri.rs#L175
error[E0308]: mismatched types
--> core/tauri/src/protocol/tauri.rs:175:28
|
175 | *response.body_mut() = body.as_bytes().to_vec();
| -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Cow<'_, [u8]>`, found `Vec<u8>`
| |
| expected due to the type of this binding
|
= note: expected enum `std::borrow::Cow<'static, [u8]>`
found struct `std::vec::Vec<u8>`
help: call `Into::into` on this expression to convert `std::vec::Vec<u8>` into `std::borrow::Cow<'static, [u8]>`
|
175 | *response.body_mut() = body.as_bytes().to_vec().into();
| +++++++
|
audit-js
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
audit-rust
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/audit-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/
|