Skip to content

Commit 4c44d40

Browse files
committed
clippy
1 parent 91b09f5 commit 4c44d40

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

oma-fetch/src/download.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub(crate) struct SingleDownloader<'a> {
4141
timeout: Duration,
4242
}
4343

44-
impl<'a> SingleDownloader<'a> {
44+
impl SingleDownloader<'_> {
4545
pub(crate) async fn try_download<F, Fut>(
4646
self,
4747
global_progress: &AtomicU64,

oma-fetch/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub struct Summary {
207207
pub context: Option<String>,
208208
}
209209

210-
impl<'a> DownloadManager<'a> {
210+
impl DownloadManager<'_> {
211211
/// Start download
212212
pub async fn start_download<F, Fut>(&self, callback: F) -> Vec<DownloadResult<Summary>>
213213
where

oma-refresh/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ impl<'a> OmaRefresh<'a> {
458458
Ok(())
459459
}
460460

461-
async fn get_release_file<'b, F, Fut>(
461+
async fn get_release_file<F, Fut>(
462462
&self,
463463
entry: &MirrorSource<'_>,
464464
replacer: &DatabaseFilenameReplacer,

oma-topics/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl<'a> TopicManager<'a> {
195195

196196
let index = self
197197
.available_topics()
198-
.find(|x| x.name.to_ascii_lowercase() == topic.to_ascii_lowercase());
198+
.find(|x| x.name.eq_ignore_ascii_case(topic));
199199

200200
let enabled_names = self.enabled.iter().map(|x| &x.name).collect::<Vec<_>>();
201201

@@ -219,7 +219,7 @@ impl<'a> TopicManager<'a> {
219219
let index = self
220220
.enabled
221221
.iter()
222-
.position(|x| x.name.to_ascii_lowercase() == topic.to_ascii_lowercase());
222+
.position(|x| x.name.eq_ignore_ascii_case(topic));
223223

224224
debug!("oma will opt_out: {}", topic);
225225
debug!("index is: {index:?}");

0 commit comments

Comments
 (0)