Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Nov 23, 2023
1 parent e83dd3d commit b551d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/algos/fzf/slab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl Default for BonusSlab {
impl BonusSlab {
/// TODO: docs
#[inline]
pub fn alloc<'a>(&'a mut self, len: usize) -> &'a mut [Bonus] {
pub fn alloc(&mut self, len: usize) -> &mut [Bonus] {
if len > self.vec.len() {
self.vec.resize(len, Bonus::default());
}
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
//! ```
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(clippy::module_inception)]
#![allow(clippy::needless_range_loop)]
#![allow(clippy::too_many_arguments)]
#![deny(missing_docs)]
Expand Down

0 comments on commit b551d1f

Please sign in to comment.