diff --git a/src/config.nim b/src/config.nim index c27cfd5..d7917a4 100644 --- a/src/config.nim +++ b/src/config.nim @@ -1,7 +1,7 @@ # SPDX-License-Identifier: AGPL-3.0-only -import parsecfg except Config -import types, strutils +import std/parsecfg except Config import std/uri +import types, strutils proc get*[T](config: parseCfg.Config; section, key: string; default: T): T = let val = config.getSectionValue(section, key) diff --git a/src/types.nim b/src/types.nim index 98b12da..1dfee55 100644 --- a/src/types.nim +++ b/src/types.nim @@ -1,7 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-only -import times, sequtils, options, tables +import std/[times, sequtils, options, tables, uri] import prefs_impl -import std/uri genPrefsType()