rust-embed icon indicating copy to clipboard operation
rust-embed copied to clipboard

error[E0609]: no field `data` on type `Cow<'_, [u8]>`

Open ArunGust opened this issue 2 years ago • 1 comments
trafficstars

Hey, I got below error, any idea about this issue

error[E0609]: no field data on type Cow<'_, [u8]> --> src\main.rs:23:25 | 23 | .body(content.data.into_owned()),

ArunGust avatar Sep 18 '23 00:09 ArunGust

Have you tried any of the example code? They seem to be working. https://github.com/pyrossh/rust-embed/blob/master/examples/basic.rs

pyrossh avatar Sep 23 '23 13:09 pyrossh