Skip to content

Commit e434406

Browse files
committed
fix clippy warnings
1 parent 3d843d0 commit e434406

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

crates/font-awesome-as-a-crate/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use std::{
66
};
77

88
fn main() {
9+
println!("cargo::rustc-check-cfg=cfg(font_awesome_out_dir)");
910
println!("cargo:rustc-cfg=font_awesome_out_dir");
1011
write_fontawesome_sprite();
1112
}

src/metrics/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ load_metric_type!(HistogramVec as vec);
2020
/// the measured times from cdn invalidations, meaning:
2121
/// * how long an invalidation took, or
2222
/// * how long the invalidation was queued
23+
///
2324
/// will be put into these buckets (seconds,
2425
/// each entry is the upper bound).
2526
/// Prometheus only gets the counts per bucket in a certain

src/storage/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ impl AsyncStorage {
412412

413413
let mut zip = zip::ZipWriter::new(io::Cursor::new(Vec::new()));
414414
for file_path in get_file_list(&root_dir)? {
415-
let mut file = fs::File::open(&root_dir.join(&file_path))?;
415+
let mut file = fs::File::open(root_dir.join(&file_path))?;
416416

417417
zip.start_file(file_path.to_str().unwrap(), options)?;
418418
io::copy(&mut file, &mut zip)?;

src/web/crate_details.rs

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub(crate) struct Release {
9090
/// * the rest is all builds are in-progress -> InProgress
9191
/// -> if we have any builds, and the previous conditions don't match, we end
9292
/// up here, but we still check.
93+
///
9394
/// calculated in a database view : `release_build_status`
9495
pub build_status: BuildStatus,
9596
pub yanked: Option<bool>,

0 commit comments

Comments
 (0)