Make extern crate alloc centralized

This commit is contained in:
tali 2022-12-13 18:18:54 -05:00
parent 2c4afe54a0
commit f33a60d24d
3 changed files with 5 additions and 6 deletions

View File

@ -31,3 +31,6 @@ macro_rules! mat {
}) })
} }
} }
#[cfg(test)]
extern crate alloc;

View File

@ -106,10 +106,8 @@ mod test {
use super::*; use super::*;
use crate::mat; use crate::mat;
use core::ops::RangeInclusive;
extern crate alloc;
use alloc::vec::Vec; use alloc::vec::Vec;
use core::ops::RangeInclusive;
#[test] #[test]
fn test_bit_constants() { fn test_bit_constants() {

View File

@ -146,10 +146,8 @@ mod test {
use super::*; use super::*;
use crate::mat; use crate::mat;
use core::ops::RangeInclusive;
extern crate alloc;
use alloc::vec::Vec; use alloc::vec::Vec;
use core::ops::RangeInclusive;
// .X. // .X.
// .XX origin at (1,1) // .XX origin at (1,1)