You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I follow the example as bellow
use stylist::Style;
let style = Style::new("background-color: red;")?;
the error is:
the trait bound StyleSource: From<&str> is not satisfied
the trait From<Sheet> is implemented for StyleSource
required for &str to implement Into<StyleSource>
required for StyleSource to implement TryFrom<&str>
The text was updated successfully, but these errors were encountered:
The example shown in the "Runtime Style" section of the README depends on enabling the parser feature. I suppose this should be made clear. Prefer the macros generally, due to lower runtime overhead.
I follow the example as bellow
use stylist::Style;
let style = Style::new("background-color: red;")?;
the error is:
the trait bound
StyleSource: From<&str>
is not satisfiedthe trait
From<Sheet>
is implemented forStyleSource
required for
&str
to implementInto<StyleSource>
required for
StyleSource
to implementTryFrom<&str>
The text was updated successfully, but these errors were encountered: