Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Mar 6, 2024
1 parent 053d3ac commit 63a92d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,17 @@ pub fn jss_with_media(input: proc_macro::TokenStream) -> proc_macro::TokenStream
/// # Example:
/// ```rust
/// use sauron::style;
/// use sauron::Render;
/// use sauron::html::units::{px, percent};
/// use sauron::html::attributes::{Attribute,attr};
///
/// let s1 = style! {
/// let s1: Attribute<()> = style! {
/// background_color: "red",
/// border: (px(1), "solid", "green"),
/// width: percent(100),
/// };
/// let expected: Attribute<()> = attr("style","background-color:red;border:1px solid green;width:100%;");
/// assert_eq!(expected, s1);
/// assert_eq!(expected.render_to_string(), s1.render_to_string());
/// ```
#[proc_macro]
pub fn style(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
Expand Down

0 comments on commit 63a92d7

Please sign in to comment.