From 3b7f4dd039f7012b7c3a3ec732b23cae2a0b8eb6 Mon Sep 17 00:00:00 2001 From: connorskees Date: Wed, 18 Jan 2023 02:08:12 +0000 Subject: [PATCH] use compressed output in doc example makes this feature more discoverable, as it's typically what users want --- crates/compiler/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/compiler/src/lib.rs b/crates/compiler/src/lib.rs index f9278b5..09e3091 100644 --- a/crates/compiler/src/lib.rs +++ b/crates/compiler/src/lib.rs @@ -18,9 +18,9 @@ implementation. fn main() -> Result<(), Box> { let css = grass::from_string( "a { b { color: &; } }".to_owned(), - &grass::Options::default() + &grass::Options::default().style(grass::OutputStyle::Compressed) )?; - assert_eq!(css, "a b {\n color: a b;\n}\n"); + assert_eq!(css, "a b{color:a b}"); Ok(()) } ```