Skip to content

Commit

Permalink
Merge pull request #11 from cloneable/fix-vec-in-zero-elements
Browse files Browse the repository at this point in the history
Fix `vec![in]` without elements to use correct allocator
  • Loading branch information
zakarumych committed Jan 30, 2024
2 parents 6a67e3c + 7f86d4b commit 738620d
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 738620d

Please sign in to comment.