From c3000fff2b64beeddfc4046cec3f85939e350eea Mon Sep 17 00:00:00 2001 From: tibvdm Date: Wed, 28 Aug 2024 10:55:44 +0200 Subject: [PATCH] division by 0 fix --- sa-index/src/sa_searcher.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sa-index/src/sa_searcher.rs b/sa-index/src/sa_searcher.rs index aa7e52b..73701b2 100644 --- a/sa-index/src/sa_searcher.rs +++ b/sa-index/src/sa_searcher.rs @@ -1,5 +1,4 @@ -use std::{cmp::min, ops::Deref}; -use std::str::from_utf8; +use std::{cmp::min, cmp::max, ops::Deref}; use std::time::{SystemTime, SystemTimeError, UNIX_EPOCH}; use sa_mappings::proteins::{Protein, Proteins};