Fix test breakage oh no
This commit is contained in:
parent
4284875869
commit
f48966b5bb
1 changed files with 4 additions and 6 deletions
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
extern crate maud;
|
extern crate maud;
|
||||||
|
|
||||||
use std::fmt;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn issue_13() {
|
fn issue_13() {
|
||||||
let owned = String::from("yay");
|
let owned = String::from("yay");
|
||||||
|
@ -55,8 +53,8 @@ fn issue_23() {
|
||||||
fn render_impl() {
|
fn render_impl() {
|
||||||
struct R(&'static str);
|
struct R(&'static str);
|
||||||
impl maud::Render for R {
|
impl maud::Render for R {
|
||||||
fn render(&self, w: &mut fmt::Write) -> fmt::Result {
|
fn render(&self, w: &mut String) {
|
||||||
w.write_str(self.0)
|
w.push_str(self.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,8 +71,8 @@ fn render_impl() {
|
||||||
fn render_once_impl() {
|
fn render_once_impl() {
|
||||||
struct Once(String);
|
struct Once(String);
|
||||||
impl maud::RenderOnce for Once {
|
impl maud::RenderOnce for Once {
|
||||||
fn render_once(self, w: &mut fmt::Write) -> fmt::Result {
|
fn render_once(self, w: &mut String) {
|
||||||
w.write_str(&self.0)
|
w.push_str(&self.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue