Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion render/src/fragment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::fmt::{Result, Write};
/// };
/// assert_eq!(result, "<a/><b/>");
/// ```
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Fragment<T: Render> {
pub children: T,
}
Expand Down
2 changes: 1 addition & 1 deletion render/src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::fmt::{Result, Write};
/// };
/// # assert_eq!(result, "<!DOCTYPE html><html><body/></html>");
/// ```
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct HTML5Doctype;

impl Render for HTML5Doctype {
Expand Down
2 changes: 1 addition & 1 deletion render/src/simple_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::fmt::{Result, Write};
type Attributes<'a> = Option<HashMap<&'a str, Cow<'a, str>>>;

/// Simple HTML element tag
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct SimpleElement<'a, T: Render> {
/// the HTML tag name, like `html`, `head`, `body`, `link`...
pub tag_name: &'a str,
Expand Down
2 changes: 1 addition & 1 deletion render/src/text_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl Render for std::borrow::Cow<'_, str> {
}

/// A raw (unencoded) html string
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Raw<'s>(&'s str);

impl<'s> From<&'s str> for Raw<'s> {
Expand Down