Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 19, 2024
1 parent 74faf1e commit bb266b3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
9 changes: 3 additions & 6 deletions src/asyncutil/lsg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ use std::future::Future;
use std::pin::Pin;
use std::sync::{Arc, Mutex, PoisonError};
use std::task::{Context, Poll};
use tokio::{
sync::{
mpsc::{channel, Receiver, Sender},
Semaphore,
},
time::timeout,
use tokio::sync::{
mpsc::{channel, Receiver, Sender},
Semaphore,
};
use tokio_util::sync::CancellationToken;

Expand Down
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(dead_code)] // XXX
#![allow(unused_imports)] // XXX
#![allow(clippy::todo)] // XXX
mod asyncutil;
mod inventory;
mod manifest;
Expand Down
1 change: 0 additions & 1 deletion src/s3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ impl S3Client {
self.make_dl_tempfile(&PathBuf::from(format!("data/{fname}.csv.gz")), &url)?;
self.download_object(&url, Some(&fspec.md5_checksum), &outfile)
.await?;
// TODO: Verify file size?
Ok(InventoryList::from_gzip_csv_file(url, outfile))

Check warning on line 171 in src/s3/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/s3/mod.rs#L171

Added line #L171 was not covered by tests
}

Expand Down
2 changes: 1 addition & 1 deletion src/syncer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::inventory::InventoryItem;
use crate::manifest::CsvManifest;
use crate::s3::S3Client;
use anyhow::Context;
use futures_util::{stream::select, StreamExt};
use futures_util::StreamExt;
use std::fmt;
use std::fs::File;
use std::num::NonZeroUsize;
Expand Down
3 changes: 0 additions & 3 deletions src/timestamps/util.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use std::num::ParseIntError;
use thiserror::Error;

#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub(super) struct Scanner<'a, E> {
s: &'a str,
Expand Down

0 comments on commit bb266b3

Please sign in to comment.