Run cargo fmt

This commit is contained in:
Joscha 2026-04-20 22:29:53 +02:00
parent d26ef729eb
commit 01d9e06d63
4 changed files with 15 additions and 10 deletions

View file

@ -1,5 +1,5 @@
use axum_core::response::IntoResponse;
use http::{header, HeaderValue, StatusCode};
use http::{HeaderValue, StatusCode, header};
use crate::{Document, Render};

View file

@ -1,4 +1,4 @@
use std::collections::{btree_map::Entry, BTreeMap, HashMap};
use std::collections::{BTreeMap, HashMap, btree_map::Entry};
/// The kind of an element.
///
@ -501,8 +501,12 @@ element_component_tuple!(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11);
element_component_tuple!(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12);
element_component_tuple!(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13);
element_component_tuple!(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14);
element_component_tuple!(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15);
element_component_tuple!(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16);
element_component_tuple!(
C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15
);
element_component_tuple!(
C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16
);
/// A full HTML document including doctype.
///

View file

@ -84,7 +84,7 @@ pub use self::{element::*, render::*};
#[cfg(test)]
mod tests {
use crate::{html::*, Attr, Content, Element, Render};
use crate::{Attr, Content, Element, Render, html::*};
#[test]
fn simple_website() {
@ -130,9 +130,11 @@ mod tests {
assert!(script("hello </script> world").render_to_string().is_err());
assert!(script("hello </ScRiPt ... world")
assert!(
script("hello </ScRiPt ... world")
.render_to_string()
.is_err());
.is_err()
);
}
#[test]

View file

@ -1,9 +1,8 @@
use std::{error, fmt};
use crate::{
check,
Document, check,
element::{Content, Element, ElementKind},
Document,
};
/// The cause of an [`Error`].