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 af88166
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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

0 comments on commit af88166

Please sign in to comment.