Skip to content

Commit

Permalink
Merge pull request #1526 from messense/extension-name-minus
Browse files Browse the repository at this point in the history
Only check for minus in extension name
  • Loading branch information
messense authored Mar 22, 2023
2 parents 549f826 + dce6889 commit 7a7ab98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ impl BuildOptions {
}),
)?;

if !bridge.is_bin() && module_name.contains('-') {
if !bridge.is_bin() && project_layout.extension_name.contains('-') {
bail!(
"The module name must not contain a minus `-` \
(Make sure you have set an appropriate [lib] name or \
Expand Down

0 comments on commit 7a7ab98

Please sign in to comment.