Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zzau13 committed Apr 4, 2023
1 parent 28ad67c commit fbb4047
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions yarte_dom/src/dom_fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ fn add_scripts(s: &Struct, sink: &mut Sink, ir: &mut Vec<HIR>) {
}

let mut last = *sink.nodes.keys().last().unwrap() + 1;
let get_state = format!(
"function get_state(){{return JSON.stringify({MARK}{HASH});}}"
);
let get_state = format!("function get_state(){{return JSON.stringify({MARK}{HASH});}}");

ir.push(HIR::Safe(Box::new(
parse2(quote!(yarte::Json(&self))).unwrap(),
Expand Down
4 changes: 1 addition & 3 deletions yarte_helpers/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ struct Main<'a> {
debug: Option<&'a str>,
}

#[derive(Debug, Deserialize)]
#[derive(Default)]
#[derive(Debug, Deserialize, Default)]
pub struct PrintOption<'a> {
#[serde(borrow)]
pub theme: Option<&'a str>,
Expand All @@ -212,7 +211,6 @@ pub struct PrintOption<'a> {

#[allow(deprecated)]


pub fn read_config_file() -> String {
let filename = config_file_path();
if filename.exists() {
Expand Down
3 changes: 1 addition & 2 deletions yarte_html/src/tree_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,7 @@ where
tokenizer::DoctypeToken(dt) => {
if self.mode == Initial {
if data::doctype_error(&dt) {
self.sink
.parse_error(Owned(format!("Bad DOCTYPE: {dt:?}")));
self.sink.parse_error(Owned(format!("Bad DOCTYPE: {dt:?}")));
}
let Doctype {
name,
Expand Down

0 comments on commit fbb4047

Please sign in to comment.