From 2e0d4bd830c40e1108768ca17524d6246533772c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 20 Feb 2022 12:25:59 +0000 Subject: [PATCH] use destructuring in module requires --- just/just.fnl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/just/just.fnl b/just/just.fnl index 070ce42..d32ae4f 100644 --- a/just/just.fnl +++ b/just/just.fnl @@ -1,10 +1,8 @@ (local lgi (require :lgi)) (local inspect (require :inspect)) -(local Gtk lgi.Gtk) -(local Gdk lgi.Gdk) -(local WebKit2 lgi.WebKit2) -(local cairo lgi.cairo) +(local { : Gtk : Gdk : WebKit2 : cairo } lgi) + (local cache-dir (.. (os.getenv "HOME") "/.cache/just"))