Skip to content

Commit

Permalink
fix: show duplicate crate entry error for renamed crate
Browse files Browse the repository at this point in the history
  • Loading branch information
saecki committed Aug 15, 2022
1 parent 33fc5b0 commit d86b8f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/crates/toml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function Crate:is_def_enabled()
end

function Crate:cache_key()
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.name)
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.rename or self.name)
end


Expand Down
2 changes: 1 addition & 1 deletion teal/crates/toml.tl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function Crate:is_def_enabled(): boolean
end

function Crate:cache_key(): string
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.name)
return string.format("%s:%s:%s", self.section.target or "", self.section.kind, self.rename or self.name)
end


Expand Down

0 comments on commit d86b8f3

Please sign in to comment.