aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/format/css.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/format/css.lux')
-rw-r--r--stdlib/source/library/lux/data/format/css.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/data/format/css.lux b/stdlib/source/library/lux/data/format/css.lux
index 80b0623cd..600068d16 100644
--- a/stdlib/source/library/lux/data/format/css.lux
+++ b/stdlib/source/library/lux/data/format/css.lux
@@ -55,7 +55,7 @@
(def .public (font font)
(-> Font (CSS Special))
- (let [with_unicode (case (the /font.#unicode_range font)
+ (let [with_unicode (when (the /font.#unicode_range font)
{.#Some unicode_range}
(let [unicode_range' (format "U+" (at nat.hex encoded (the /font.#start unicode_range))
"-" (at nat.hex encoded (the /font.#end unicode_range)))]
@@ -79,7 +79,7 @@
(def .public (import url query)
(-> URL (Maybe Query) (CSS Special))
(abstraction (format (format "@import url(" (%.text url) ")")
- (case query
+ (when query
{.#Some query}
(format " " (/query.query query))