Skip to content

lint

lint #4734

GitHub Actions / all failed Sep 6, 2023 in 0s

all

1 error

Details

Results

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

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check failure on line 175 in core/tauri/src/protocol/tauri.rs

See this annotation in the file changed.

@github-actions github-actions / all

mismatched types

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();
    |                                                    +++++++