Skip to content

Commit

Permalink
Merge pull request #41 from saschanaz/include-win
Browse files Browse the repository at this point in the history
fix: use the same `include_dir` path for all OSes
  • Loading branch information
frehberg authored May 26, 2023
2 parents 4282819 + 6ec0732 commit 6110964
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ use std::path::Path;
use include_dir::{include_dir, Dir};

// embedded JS code being inserted as html script elmenets
#[cfg(target_os = "windows")]
static MERMAID_JS_DIR: Dir = include_dir!("..\\doc\\js\\");

#[cfg(not(target_os = "windows"))]
static MERMAID_JS_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/doc/js/");

// Note: relative path depends on sub-module the macro is invoked in:
Expand Down

0 comments on commit 6110964

Please sign in to comment.