Skip to content

Commit

Permalink
fix thawing static fns from namespaces not required yet
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmarz committed Mar 22, 2020
1 parent 0ab1c0e commit ec4f594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/rpl/nippy_serializable_fn.clj
Expand Up @@ -193,6 +193,7 @@ during interactive development."
((deserializer-for-fn-class class-name) data-input))

(defn- thaw-static-fn [var-sym]
(require (symbol (namespace var-sym)))
(var-get (resolve var-sym)))

;; these extend-thaw / extend-freeze blocks are what install the custom handlers.
Expand Down

0 comments on commit ec4f594

Please sign in to comment.