Skip to content

Commit

Permalink
Fix model loading error, if name contains '-'
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 28, 2022
1 parent 5083ecc commit 5e0d5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Model {
}

pub fn lib_path(&self) -> String {
let name = self.name();
let name = self.name().replace("-", "_");

let file = if cfg!(windows) {
format!("{}.dll", name)
Expand Down

0 comments on commit 5e0d5d7

Please sign in to comment.