Skip to content

Commit

Permalink
Use full path to vec! in smallvec! macro
Browse files Browse the repository at this point in the history
Fixes #197
  • Loading branch information
mbrubeck committed Jan 27, 2020
1 parent 34d7b8d commit 74e9319
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib.rs
Expand Up @@ -31,14 +31,14 @@
#![cfg_attr(feature = "may_dangle", feature(dropck_eyepatch))]
#![deny(missing_docs)]

#[macro_use]
extern crate alloc;
#[doc(hidden)]
pub extern crate alloc;

#[cfg(any(test, feature = "write"))]
extern crate std;

use alloc::boxed::Box;
use alloc::vec::Vec;
use alloc::{vec, vec::Vec};
use core::borrow::{Borrow, BorrowMut};
use core::cmp;
use core::fmt;
Expand Down Expand Up @@ -116,7 +116,7 @@ macro_rules! smallvec {
$(vec.push($x);)*
vec
} else {
$crate::SmallVec::from_vec(vec![$($x,)*])
$crate::SmallVec::from_vec($crate::alloc::vec![$($x,)*])
}
});
}
Expand Down Expand Up @@ -1684,7 +1684,7 @@ mod tests {
use alloc::borrow::ToOwned;
use alloc::boxed::Box;
use alloc::rc::Rc;
use alloc::vec::Vec;
use alloc::{vec, vec::Vec};

#[test]
pub fn test_zero() {
Expand Down

0 comments on commit 74e9319

Please sign in to comment.