Skip to content

Commit

Permalink
Fix up the argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
TethysSvensson committed Nov 12, 2019
1 parent 2a3c79e commit 941b3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ impl Bump {
/// ```
#[inline(always)]
#[allow(clippy::mut_from_ref)]
pub fn alloc_slice_fill_copy<T: Copy>(&self, len: usize, value: T) -> &mut [T] {
pub fn alloc_slice_fill_copy<T: Copy>(&self, value: T, len: usize) -> &mut [T] {
if len == 0 {
return &mut [];
}
Expand Down Expand Up @@ -695,7 +695,7 @@ impl Bump {
/// ```
#[inline(always)]
#[allow(clippy::mut_from_ref)]
pub fn alloc_slice_fill_clone<T: Clone>(&self, len: usize, value: &T) -> &mut [T] {
pub fn alloc_slice_fill_clone<T: Clone>(&self, value: &T, len: usize) -> &mut [T] {
if len == 0 {
return &mut [];
}
Expand Down

0 comments on commit 941b3b7

Please sign in to comment.