Skip to content

Commit 3d414dd

Browse files
committed
fix clippy
allow single-character variable names
1 parent f2ae5d7 commit 3d414dd

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/alignment/pairwise/banded.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
//! // aligner.custom_with_prehash(x, y, &y_kmers_hash) is also supported
8181
//! ```
8282
83+
#![allow(clippy::many_single_char_names)]
8384
use crate::alignment::{Alignment, AlignmentOperation};
8485
use crate::utils::TextSlice;
8586
use std::cmp::{max, min, Ordering};

src/alignment/pairwise/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
//! );
133133
//! ```
134134
135+
#![allow(clippy::many_single_char_names)]
135136
use std::cmp::max;
136137
use std::i32;
137138
use std::iter::repeat;

src/alignment/poa.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ impl<F: MatchFunc> Poa<F> {
317317
///
318318
/// # Arguments
319319
/// * `query` - the query TextSlice to align against the internal graph member
320+
#[allow(clippy::many_single_char_names)]
320321
pub fn global(&self, query: TextSlice) -> Traceback {
321322
assert!(self.graph.node_count() != 0);
322323

src/data_structures/fmindex.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ impl<DBWT: Borrow<BWT>, DLess: Borrow<Less>, DOcc: Borrow<Occ>> FMDIndex<DBWT, D
373373
}
374374

375375
/// Backward extension of given interval with given character.
376+
#[allow(clippy::many_single_char_names)]
376377
pub fn backward_ext(&self, interval: &BiInterval, a: u8) -> BiInterval {
377378
let mut s = 0;
378379
let mut o = 0;

src/data_structures/rank_select.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ impl Ord for SuperblockRank {
243243
}
244244

245245
/// Create `n` superblocks of size `s` from a given bitvector.
246+
#[allow(clippy::many_single_char_names)]
246247
fn superblocks(t: bool, n: usize, s: usize, bits: &BitVec<u8>) -> Vec<SuperblockRank> {
247248
let mut superblocks = Vec::with_capacity(n / s + 1);
248249
let mut rank: u64 = 0;

0 commit comments

Comments
 (0)