Skip to content

Commit 75ee723

Browse files
authored
fix: don't show duplicate crate entry error for renamed crate (#34)
1 parent c8e6886 commit 75ee723

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/crates/toml.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function Crate:is_def_enabled()
193193
end
194194

195195
function Crate:cache_key()
196-
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.name)
196+
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.rename or self.name)
197197
end
198198

199199

teal/crates/toml.tl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function Crate:is_def_enabled(): boolean
193193
end
194194

195195
function Crate:cache_key(): string
196-
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.name)
196+
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.rename or self.name)
197197
end
198198

199199

0 commit comments

Comments
 (0)