diff --git a/tachys/src/view/mod.rs b/tachys/src/view/mod.rs index 4d3ae8d0b3..ab3361a677 100644 --- a/tachys/src/view/mod.rs +++ b/tachys/src/view/mod.rs @@ -371,7 +371,7 @@ pub trait ToTemplate { /// The `style` attribute content known at compile time. const STYLE: &'static str = ""; /// The length of the template. - const LEN: usize = Self::TEMPLATE.as_bytes().len(); + const LEN: usize = Self::TEMPLATE.len(); /// Renders a view type to a template. This does not take actual view data, /// but can be used for constructing part of an HTML `