Skip to content

Commit

Permalink
import macros from alloc to solve issues with missing format! macro, …
Browse files Browse the repository at this point in the history
…among other issues
  • Loading branch information
vadixidav committed Jul 10, 2021
1 parent 7bcb546 commit 02e9ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -87,7 +87,6 @@ an optimized set of tools for computer graphics and physics. Those features incl
html_root_url = "https://docs.rs/nalgebra/0.25.0"
)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(all(feature = "alloc", not(feature = "std")), feature(alloc))]
#![cfg_attr(feature = "no_unsound_assume_init", allow(unreachable_code))]

#[cfg(feature = "rand-no-std")]
Expand All @@ -102,6 +101,7 @@ extern crate approx;
extern crate num_traits as num;

#[cfg(all(feature = "alloc", not(feature = "std")))]
#[cfg_attr(test, macro_use)]
extern crate alloc;

#[cfg(not(feature = "std"))]
Expand Down

0 comments on commit 02e9ac4

Please sign in to comment.