Skip to content

Commit

Permalink
bgzf/reader/builder: Use NonZeroUsize::MIN
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Apr 22, 2024
1 parent 968b11c commit 4a5e485
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions noodles-bgzf/src/reader/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ use std::{
use super::{block, Reader};
use crate::Block;

const DEFAULT_WORKER_COUNT: NonZeroUsize = match NonZeroUsize::new(1) {
Some(worker_count) => worker_count,
None => unreachable!(),
};

/// A BGZF reader builder.
#[derive(Debug)]
pub struct Builder {
Expand Down Expand Up @@ -91,7 +86,7 @@ impl Builder {
impl Default for Builder {
fn default() -> Self {
Self {
worker_count: DEFAULT_WORKER_COUNT,
worker_count: NonZeroUsize::MIN,
}
}
}

0 comments on commit 4a5e485

Please sign in to comment.