]> gitweb.factorcode.org Git - factor.git/commitdiff
json: fix a few usings
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 26 Jan 2023 00:04:32 +0000 (16:04 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 26 Jan 2023 00:04:32 +0000 (16:04 -0800)
basis/furnace/auth/providers/couchdb/couchdb.factor
basis/furnace/json/json.factor
extra/pdf/layout/layout.factor

index b4b737ef075dd67ed1346cb14c5d20c9e7daa907..3b090ee64ce38da41774c2cde3aaac807ba5ae29 100644 (file)
@@ -1,7 +1,7 @@
 USING: accessors assocs base64 byte-arrays
 combinators.short-circuit continuations couchdb
-furnace.auth.providers json.writer kernel make mirrors
-namespaces sequences strings urls urls.encoding ;
+furnace.auth.providers json kernel make mirrors namespaces
+sequences strings urls urls.encoding ;
 IN: furnace.auth.providers.couchdb
 
 ! !!! Implement the authentication protocol for CouchDB.
index 6470479592f39ab3aa9ecff06ffbbb3d24af16d8..e11813dd26e4f55461e525c3d6b34183c49152e2 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See https://factorcode.org/license.txt for BSD license.
-USING: json.writer http.server.responses ;
+USING: json http.server.responses ;
 IN: furnace.json
 
 : <json-content> ( body -- response )
index 34327e9c62c15d4b87ca0280f97e6e663e8b9ad9..544064643262375e92aa2d8d0ec3e8878aa1859c 100644 (file)
@@ -52,11 +52,11 @@ GENERIC: pdf-width ( canvas obj -- n )
 <PRIVATE
 
 : (pdf-layout) ( page obj -- page )
-    [ dup ] [
+    [ ] [
         dupd [ pdf-render ] with-string-writer
         '[ _ append ] [ change-stream ] curry dip
         [ [ , <canvas> ] when ] keep
-    ] while drop ;
+    ] while* ;
 
 PRIVATE>