// rustfmt gets confused about indentation in rsx! blocks and will indent the
// first attribute properly, but not the following, so we have to indent all
// but the first attribute manually.
rustfmt gets confused about indentation in rsx. blocks and will indent the
first attribute properly, but not the following, so we have to indent all
but the first attribute manually.
rustfmt gets confused about indentation in rsx . blocks and will indent the first attribute properly but not the following so we have to indent all but the first attribute manually .
fn attr(name: &str, value: Option<&str>, indent: bool) -> Option<String> {
    match value {
        Some(v) => Some(format!(
            r#"{}{}: "{}","#,
            if indent { "        " } else { "" },
            name,
            v,
        )),
        None => None,
    }
}
fn attr ( name : & str , value : Option < & str > , indent : bool ) -> Option < String > { match value { Some ( v ) => Some ( format ! ( r#"{}{}: "{}","# if indent { " " } else { " " } name v ) ) , None => None , } }
rustfmt gets confused about indentation in rsx!
rustfmt gets confused about indentation in rsx!
name
&str
value
Option<&str>
indent
bool