Skip to content

Commit

Permalink
Fix vec![in] without elements to use correct allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneable committed Jan 29, 2024
1 parent 6a67e3c commit 7f86d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stable/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#[macro_export]
macro_rules! vec {
(in $alloc:expr $(;)?) => (
$crate::vec::Vec::new()
$crate::vec::Vec::new_in($alloc)
);
(in $alloc:expr; $elem:expr; $n:expr) => (
$crate::vec::from_elem_in($elem, $n, $alloc)
Expand Down

0 comments on commit 7f86d4b

Please sign in to comment.