Skip to content

expected Result<Style, Error>, found Result<Style, Error> rust-analyzer #11

Description

@scskZacharyDovel

Given this code

use leptos::prelude::*;

#[component]
pub fn App() -> impl IntoView {
    let styles = styled::style!(
        p {
            background-color: red;
        }
    );

    styled::view! { styles, <p>"Double count:"</p> }
}

I'm getting these errors:

├╴  expected Result<Style, Error>, found Result<Style, Error> rust-analyzer (E0308)
     └╴  mismatched types
          you can use `cargo tree` to explore your dependency tree

I have a fresh install of CSR leptops so I'm not really sure what's going wrong. I just followed the book.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions