Skip to content

Commit

Permalink
Address cargo doc warnings.
Browse files Browse the repository at this point in the history
This commit fixes warnings emitted by `cargo doc`.

Tested via `cargo doc --open --document-private-items` and manually
inspecting the affected output (i.e. `trait.EncodableTextChunk.html`,
`transform/palette/index.html`, and `enum.U32ValueKind.html`).
  • Loading branch information
anforowicz committed Feb 12, 2024
1 parent 1ab0eac commit 03f1132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/decoder/transform/palette.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//!
//! To achieve higher throughput, `create_rgba_palette` combines entries from
//! `PLTE` and `trNS` chunks into a single lookup table. This is based on the
//! ideas explored in https://crbug.com/706134.
//! ideas explored in <https://crbug.com/706134>.
//!
//! Memoization is a trade-off:
//! * On one hand, memoization requires spending X ns before starting to call
Expand Down
2 changes: 1 addition & 1 deletion src/text_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub(crate) enum TextDecodingError {

/// A generalized text chunk trait
pub trait EncodableTextChunk {
/// Encode text chunk as Vec<u8> to a `Write`
/// Encode text chunk as `Vec<u8>` to a `Write`
fn encode<W: Write>(&self, w: &mut W) -> Result<(), EncodingError>;
}

Expand Down

0 comments on commit 03f1132

Please sign in to comment.