Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Jul 30, 2024
1 parent 3d843d0 commit e434406
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/font-awesome-as-a-crate/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::{
};

fn main() {
println!("cargo::rustc-check-cfg=cfg(font_awesome_out_dir)");
println!("cargo:rustc-cfg=font_awesome_out_dir");
write_fontawesome_sprite();
}
Expand Down
1 change: 1 addition & 0 deletions src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ load_metric_type!(HistogramVec as vec);
/// the measured times from cdn invalidations, meaning:
/// * how long an invalidation took, or
/// * how long the invalidation was queued
///
/// will be put into these buckets (seconds,
/// each entry is the upper bound).
/// Prometheus only gets the counts per bucket in a certain
Expand Down
2 changes: 1 addition & 1 deletion src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl AsyncStorage {

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

zip.start_file(file_path.to_str().unwrap(), options)?;
io::copy(&mut file, &mut zip)?;
Expand Down
1 change: 1 addition & 0 deletions src/web/crate_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub(crate) struct Release {
/// * the rest is all builds are in-progress -> InProgress
/// -> if we have any builds, and the previous conditions don't match, we end
/// up here, but we still check.
///
/// calculated in a database view : `release_build_status`
pub build_status: BuildStatus,
pub yanked: Option<bool>,
Expand Down

0 comments on commit e434406

Please sign in to comment.