Skip to content

Commit

Permalink
fix(macros): windows tests (foundry-rs#4017)
Browse files Browse the repository at this point in the history
* fix(macros): tests

* add comment

* fix: rm ends_with slash for windows build
  • Loading branch information
DaniPopes authored Jan 3, 2023
1 parent 4935765 commit be7084e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion macros/impl/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub fn krate() -> syn::Path {
#[inline]
pub fn crate_str() -> &'static str {
match std::env::var("CARGO_MANIFEST_DIR") {
Ok(var) if var.ends_with("/macros") => "crate",
Ok(var) if var.ends_with("macros") => "crate",
_ => "::foundry_macros",
}
}
4 changes: 4 additions & 0 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! Foundry's procedural macros.
// TODO: Remove dependency on foundry-common (currently only used for the UIfmt trait).

mod console_fmt;
pub use console_fmt::{console_format, ConsoleFmt, FormatSpec};

Expand Down

0 comments on commit be7084e

Please sign in to comment.