From f6f4eb3e1546bd6f0113bb913d9b6cdc01279f84 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Fri, 14 Feb 2020 14:36:16 -0500 Subject: [PATCH] Cleanup example code for `StyleSheet::print_as_css()` --- src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9528429..a402a5d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -286,15 +286,11 @@ impl StyleSheet { /// Write the internal representation as CSS to `buf` /// - /// ```norun + /// ``` /// use std::io::{BufWriter, stdout}; /// use grass::{SassResult, StyleSheet}; - /// # use tempfile::Builder; - /// # use std::io::Write; /// /// fn main() -> SassResult<()> { - /// # let mut file = Builder::new().prefix("input.scss").tempfile().unwrap(); - /// # write!(file, "a {{\n color: red}}")?; /// let mut buf = BufWriter::new(stdout()); /// StyleSheet::from_path("input.scss")?.print_as_css(&mut buf) /// }