Skip to content

Commit d948713

Browse files
committed
fix: type issue with new teal compiler
1 parent 7413089 commit d948713

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/crates/popup/dependencies.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function M.open_deps(ctx, crate_name, version, opts)
153153
local title = string.format(state.cfg.popup.text.title, crate_name .. " " .. version.num)
154154
local deps_width = 0
155155
local deps_text_index = {}
156-
local HlTextDepList = {}
156+
157157

158158

159159

teal/crates/api.tl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function M.parse_deps(json_str: string): {Dependency}|nil
262262
opt = d.optional as boolean or false,
263263
kind = d.kind as Dependency.Kind or "normal",
264264
vers = {
265-
text = d.req,
265+
text = d.req as string,
266266
reqs = semver.parse_requirements(d.req as string),
267267
},
268268
}

0 commit comments

Comments
 (0)