Skip to content

Commit

Permalink
Fix panic on 'wasm32-unknown-unknown' target (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlapa authored and tyranron committed Nov 22, 2019
1 parent 10a91a3 commit c81ab7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include = ["/src/", "/Cargo.toml", "/CHANGELOG.md", "/LICENSE.md", "/README.md"]
features = ["failure"]

[dependencies]
dm = { version = "0.99.2", package = "derive_more" }
derive_more = "0.99.2"
[dependencies.failure]
version = "0.1.6"
optional = true
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ use std::{
sync::atomic::{AtomicUsize, Ordering},
};

use derive_more as dm;
#[cfg(feature = "failure")]
use failure::Fail;

Expand Down
2 changes: 2 additions & 0 deletions src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use std::{
ops::{Deref, DerefMut},
};

use derive_more as dm;

/// Captured frame of [`Trace`].
#[derive(Clone, Copy, Debug, dm::Display)]
#[display(fmt = "{}\n at {}:{}", module, file, line)]
Expand Down

0 comments on commit c81ab7a

Please sign in to comment.