Skip to content

Commit

Permalink
fix: rust package import name
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Jan 30, 2024
1 parent 4e002e3 commit d8af8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (r rust) generateCodeFile(
`use anyhow::Result;
use %s::*;
%s
`, leetgoRs, emptySolution,
`, strings.ReplaceAll(leetgoRs, "-", "_"), emptySolution,
)
testContent, err := r.generateTestContent(q)
if err != nil {
Expand Down

0 comments on commit d8af8f8

Please sign in to comment.