Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #178 from cgwalters/derive-debug
Browse files Browse the repository at this point in the history
Add some missing `#[derive(Debug)]`
  • Loading branch information
lucab authored Dec 7, 2021
2 parents eabfb21 + 21da3ca commit 9dd2e1a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ version = "0.5.1"
anyhow = "1.0"
containers-image-proxy = "0.3"
async-compression = { version = "0.3", features = ["gzip", "tokio"] }
bytes = "1.0.1"
bitflags = "1"
camino = "1.0.4"
cjson = "0.1.1"
Expand Down
2 changes: 2 additions & 0 deletions lib/src/container/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ impl LayeredImageState {
}

/// Context for importing a container image.
#[derive(Debug)]
pub struct LayeredImageImporter {
repo: ostree::Repo,
proxy: ImageProxy,
Expand All @@ -90,6 +91,7 @@ pub struct LayeredImageImporter {
}

/// Result of invoking [`LayeredImageImporter::prepare`].
#[derive(Debug)]
pub enum PrepareResult {
/// The image reference is already present; the contained string is the OSTree commit.
AlreadyPresent(LayeredImageState),
Expand Down
1 change: 1 addition & 0 deletions lib/src/container/unencapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type Progress = tokio::sync::watch::Sender<UnencapsulationProgress>;

/// A read wrapper that updates the download progress.
#[pin_project::pin_project]
#[derive(Debug)]
struct ProgressReader<T> {
#[pin]
reader: T,
Expand Down
4 changes: 3 additions & 1 deletion lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
//! and the Rust bindings to it, adding new functionality
//! written in Rust.
// See https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html
#![deny(missing_docs)]
// Good defaults
#![deny(missing_debug_implementations)]
#![deny(unreachable_pub)]
#![forbid(unused_must_use)]
#![deny(unsafe_code)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
Expand Down
1 change: 1 addition & 0 deletions lib/src/tar/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub struct WriteTarOptions {
///
/// This includes some basic data on the number of files that were filtered
/// out because they were not in `/usr`.
#[derive(Debug, Default)]
pub struct WriteTarResult {
/// The resulting OSTree commit SHA-256.
pub commit: String,
Expand Down

0 comments on commit 9dd2e1a

Please sign in to comment.