Skip to content

Commit

Permalink
fix: use the same include_dir path for all OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed May 3, 2023
1 parent 4282819 commit 6ec0732
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 6ec0732

Please sign in to comment.