Skip to content

Commit

Permalink
fix: clippy lints and rust version update
Browse files Browse the repository at this point in the history
  • Loading branch information
sstadick committed Dec 1, 2024
1 parent 8063d3f commit 1a2b847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy.
# https://rust-lang.github.io/rustup/concepts/profiles.html
profile = "default"
channel = "1.81.0"
channel = "1.82.0"
4 changes: 3 additions & 1 deletion src/lib/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::{
path::Path,
};

const DEFAULT_DELIM: &[u8] = &[b'\t'];
const DEFAULT_DELIM: &[u8] = b"\t";

/// The input types that `hck` can parse.
pub enum HckInput<P: AsRef<Path>> {
Expand Down Expand Up @@ -426,6 +426,7 @@ where
/// Iterate over the lines in a slice of bytes.
///
/// The input slice of bytes is assumed to end in a newline.
#[allow(clippy::missing_transmute_annotations)]
pub fn hck_bytes<W>(&mut self, bytes: &[u8], mut output: W) -> Result<(), io::Error>
where
W: Write,
Expand Down Expand Up @@ -497,6 +498,7 @@ where
}

/// Process lines from a reader.
#[allow(clippy::missing_transmute_annotations)]
pub fn hck_reader<R: Read, W: Write>(
&mut self,
reader: R,
Expand Down

0 comments on commit 1a2b847

Please sign in to comment.