Skip to content

Commit

Permalink
fix: suppressed new warnings produced by rust 1.78.0 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus authored May 2, 2024
1 parent df3bf58 commit 0952658
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [".", "crate/encstr"]
[workspace.package]
repository = "https://github.com/pamburus/hl"
authors = ["Pavel Ivanov <[email protected]>"]
version = "0.29.0-alpha.3"
version = "0.29.0-alpha.4"
edition = "2021"
license = "MIT"

Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ install:
@cargo install --path . --locked
.PHONY: install

## Install versioned binary
install-versioned:
@cargo install --path . --locked
@cp ${HOME}/.cargo/bin/hl ${HOME}/.cargo/bin/$$(${HOME}/.cargo/bin/hl --version | tr ' ' '-')
.PHONY: install-versioned

## Run tests
test:
@cargo test
Expand Down
3 changes: 3 additions & 0 deletions src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ use crossbeam_queue::SegQueue;

// ---

#[allow(dead_code)]
pub trait Pool<T>: Checkout<T> + Checkin<T> {}

impl<T, U: Checkout<T> + Checkin<T>> Pool<T> for U {}

// ---

#[allow(dead_code)]
pub trait Checkout<T> {
fn checkout(&self) -> T;
}

// ---

#[allow(dead_code)]
pub trait Checkin<T> {
fn checkin(&self, item: T);
}
Expand Down
1 change: 1 addition & 0 deletions src/replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ impl<F: ReaderFactory, C: Cache> RewindingReaderBuilder<F, C> {

// ---

#[allow(dead_code)]
trait ReadSeek: Read + Seek {}

impl<T: Read + Seek> ReadSeek for T {}
Expand Down

0 comments on commit 0952658

Please sign in to comment.