Pastebin
Retrouvez, créez et partagez vos snippets en temps réel.
Rechercher un Pastebin
Aucun paste trouvé.
Créer un paste
Pastebin
Blog
azazaza
┌─[mothersphere@archlinux] - [Grape] - [ main + / - ] └─>[$] cargo run Compiling grape v0.1.0 (/home/mothersphere/Grape) error[E0308]: mismatched types --> src/main.rs:15:63 | 15 | main_window.set_hero_artwork(slint::Image::load_from_path("assets/ui/album_card.png")?); | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:15:90 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 15 | main_window.set_hero_artwork(slint::Image::load_from_path("assets/ui/album_card.png")?); | --------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:23:65 | 23 | main_window.set_player_artwork(slint::Image::load_from_path("assets/ui/album_card.png")?); | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:23:92 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 23 | main_window.set_player_artwork(slint::Image::load_from_path("assets/ui/album_card.png")?); | --------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0277]: the trait bound `SharedVector<_>: From<Vec<SidebarItem>>` is not satisfied --> src/main.rs:29:22 | 29 | let menu_items = slint::SharedVector::from(vec![ | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<SidebarItem>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` error[E0277]: the trait bound `SharedVector<_>: From<Vec<SidebarItem>>` is not satisfied --> src/main.rs:43:25 | 43 | let library_items = slint::SharedVector::from(vec![ | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<SidebarItem>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` error[E0277]: the trait bound `SharedVector<_>: From<Vec<SidebarItem>>` is not satisfied --> src/main.rs:53:26 | 53 | let playlist_items = slint::SharedVector::from(vec![ | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<SidebarItem>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` error[E0308]: mismatched types --> src/main.rs:65:49 | 65 | photo: slint::Image::load_from_path("assets/ui/artist-1.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:65:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 65 | photo: slint::Image::load_from_path("assets/ui/artist-1.png")?, | ------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:69:49 | 69 | photo: slint::Image::load_from_path("assets/ui/artist-2.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:69:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 69 | photo: slint::Image::load_from_path("assets/ui/artist-2.png")?, | ------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:73:49 | 73 | photo: slint::Image::load_from_path("assets/ui/artist-3.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:73:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 73 | photo: slint::Image::load_from_path("assets/ui/artist-3.png")?, | ------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:77:49 | 77 | photo: slint::Image::load_from_path("assets/ui/artist-4.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:77:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 77 | photo: slint::Image::load_from_path("assets/ui/artist-4.png")?, | ------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:81:49 | 81 | photo: slint::Image::load_from_path("assets/ui/artist-5.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:81:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 81 | photo: slint::Image::load_from_path("assets/ui/artist-5.png")?, | ------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:85:49 | 85 | photo: slint::Image::load_from_path("assets/ui/artist-6.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:85:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 85 | photo: slint::Image::load_from_path("assets/ui/artist-6.png")?, | ------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:89:49 | 89 | photo: slint::Image::load_from_path("assets/ui/artist-7.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:89:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 89 | photo: slint::Image::load_from_path("assets/ui/artist-7.png")?, | ------------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0277]: the trait bound `SharedVector<_>: From<Vec<Artist>>` is not satisfied --> src/main.rs:63:23 | 63 | let top_artists = slint::SharedVector::from(vec![ | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<Artist>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` error[E0277]: the trait bound `SharedVector<_>: From<Vec<Genre>>` is not satisfied --> src/main.rs:93:22 | 93 | let top_genres = slint::SharedVector::from(vec![ | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<Genre>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` error[E0308]: mismatched types --> src/main.rs:122:51 | 122 | artwork: slint::Image::load_from_path("assets/ui/song-1.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:122:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 122 | artwork: slint::Image::load_from_path("assets/ui/song-1.png")?, | ----------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:129:51 | 129 | artwork: slint::Image::load_from_path("assets/ui/song-2.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:129:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 129 | artwork: slint::Image::load_from_path("assets/ui/song-2.png")?, | ----------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0308]: mismatched types --> src/main.rs:136:51 | 136 | artwork: slint::Image::load_from_path("assets/ui/song-3.png")?, | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: `?` couldn't convert the error to `PlatformError` --> src/main.rs:136:74 | 7 | fn main() -> Result<(), slint::PlatformError> { | -------------------------------- expected `PlatformError` because of this ... 136 | artwork: slint::Image::load_from_path("assets/ui/song-3.png")?, | ----------------------------------------------------^ the trait `From<LoadImageError>` is not implemented for `PlatformError` | | | this can't be annotated with `?` because it has type `Result<_, LoadImageError>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `From<T>`: `PlatformError` implements `From<&str>` `PlatformError` implements `From<Box<dyn std::error::Error + Send + Sync>>` `PlatformError` implements `From<String>` error[E0277]: the trait bound `SharedVector<_>: From<Vec<Track>>` is not satisfied --> src/main.rs:119:43 | 119 | let top_tracks = Rc::new(RefCell::new(slint::SharedVector::from(vec![ | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<Track>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` error[E0308]: mismatched types --> src/main.rs:143:32 | 143 | main_window.set_menu_items(menu_items.clone()); | -------------- ^^^^^^^^^^^^^^^^^^ expected `ModelRc<SidebarItem>`, found `SharedVector<_>` | | | arguments to this method are incorrect | = note: expected struct `ModelRc<SidebarItem>` found struct `SharedVector<_>` note: method defined here --> /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15241:39 | 15241 | # [allow (dead_code)] pub fn set_menu_items (& self , value : sp :: ModelRc < r#SidebarItem >) { | ^^^^^^^^^^^^^^ --------------------------------------- error[E0308]: mismatched types --> src/main.rs:144:35 | 144 | main_window.set_library_items(library_items.clone()); | ----------------- ^^^^^^^^^^^^^^^^^^^^^ expected `ModelRc<SidebarItem>`, found `SharedVector<_>` | | | arguments to this method are incorrect | = note: expected struct `ModelRc<SidebarItem>` found struct `SharedVector<_>` note: method defined here --> /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15221:39 | 15221 | # [allow (dead_code)] pub fn set_library_items (& self , value : sp :: ModelRc < r#SidebarItem >) { | ^^^^^^^^^^^^^^^^^ --------------------------------------- error[E0308]: mismatched types --> src/main.rs:145:36 | 145 | main_window.set_playlist_items(playlist_items.clone()); | ------------------ ^^^^^^^^^^^^^^^^^^^^^^ expected `ModelRc<SidebarItem>`, found `SharedVector<_>` | | | arguments to this method are incorrect | = note: expected struct `ModelRc<SidebarItem>` found struct `SharedVector<_>` note: method defined here --> /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15311:39 | 15311 | # [allow (dead_code)] pub fn set_playlist_items (& self , value : sp :: ModelRc < r#SidebarItem >) { | ^^^^^^^^^^^^^^^^^^ --------------------------------------- error[E0308]: mismatched types --> src/main.rs:146:33 | 146 | main_window.set_top_artists(top_artists.clone()); | --------------- ^^^^^^^^^^^^^^^^^^^ expected `ModelRc<Artist>`, found `SharedVector<_>` | | | arguments to this method are incorrect | = note: expected struct `ModelRc<Artist>` found struct `SharedVector<_>` note: method defined here --> /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15331:39 | 15331 | # [allow (dead_code)] pub fn set_top_artists (& self , value : sp :: ModelRc < r#Artist >) { | ^^^^^^^^^^^^^^^ ---------------------------------- error[E0308]: mismatched types --> src/main.rs:147:32 | 147 | main_window.set_top_genres(top_genres.clone()); | -------------- ^^^^^^^^^^^^^^^^^^ expected `ModelRc<Genre>`, found `SharedVector<_>` | | | arguments to this method are incorrect | = note: expected struct `ModelRc<Genre>` found struct `SharedVector<_>` note: method defined here --> /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15341:39 | 15341 | # [allow (dead_code)] pub fn set_top_genres (& self , value : sp :: ModelRc < r#Genre >) { | ^^^^^^^^^^^^^^ --------------------------------- error[E0308]: mismatched types --> src/main.rs:148:32 | 148 | main_window.set_top_tracks(top_tracks.borrow().clone()); | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ModelRc<Track>`, found `SharedVector<_>` | | | arguments to this method are incorrect | = note: expected struct `ModelRc<Track>` found struct `SharedVector<_>` note: method defined here --> /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15361:39 | 15361 | # [allow (dead_code)] pub fn set_top_tracks (& self , value : sp :: ModelRc < r#Track >) { | ^^^^^^^^^^^^^^ --------------------------------- error[E0599]: no method named `clone` found for struct `MainWindow` in the current scope --> src/main.rs:151:46 | 151 | let main_window_for_insert = main_window.clone(); | ^^^^^ method not found in `MainWindow` | ::: /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15129:6 | 15129 | pub struct r#MainWindow (sp :: VRc < sp :: ItemTreeVTable , InnerMainWindow >) ; | ----------------------- method `clone` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `clone`, perhaps you need to implement it: candidate #1: `Clone` error[E0308]: mismatched types --> src/main.rs:158:55 | 158 | artwork: slint::Image::load_from_path("assets/ui/song-1.png").unwrap_or_default(), | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&Path`, found `&str` | | | arguments to this function are incorrect | = note: expected reference `&std::path::Path` found reference `&'static str` note: associated function defined here --> /home/mothersphere/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/i-slint-core-1.14.1/graphics/image.rs:714:12 | 714 | pub fn load_from_path(path: &std::path::Path) -> Result<Self, LoadImageError> { | ^^^^^^^^^^^^^^ error[E0277]: the trait bound `SharedVector<_>: From<Vec<Track>>` is not satisfied --> src/main.rs:164:30 | 164 | let updated_vector = slint::SharedVector::from(updated); | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<Track>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` error[E0599]: no method named `clone` found for struct `MainWindow` in the current scope --> src/main.rs:170:46 | 170 | let main_window_for_remove = main_window.clone(); | ^^^^^ method not found in `MainWindow` | ::: /home/mothersphere/Grape/target/debug/build/grape-c7766de5780ffdff/out/main.rs:15129:6 | 15129 | pub struct r#MainWindow (sp :: VRc < sp :: ItemTreeVTable , InnerMainWindow >) ; | ----------------------- method `clone` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `clone`, perhaps you need to implement it: candidate #1: `Clone` error[E0277]: the trait bound `SharedVector<_>: From<Vec<Track>>` is not satisfied --> src/main.rs:175:34 | 175 | let updated_vector = slint::SharedVector::from(updated); | ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<Track>>` is not implemented for `SharedVector<_>` | = help: the following other types implement trait `From<T>`: `SharedVector<T>` implements `From<&[T]>` `SharedVector<T>` implements `From<[T; N]>` Some errors have detailed explanations: E0277, E0308, E0599. For more information about an error, try `rustc --explain E0277`. error: could not compile `grape` (bin "grape") due to 41 previous errors
Créé il y a 3 semaines.