diff --git a/Cargo.lock b/Cargo.lock index 29cb6259..61007be4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -600,7 +600,7 @@ checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d" [[package]] name = "encstr" -version = "0.29.0-alpha.3" +version = "0.29.0-alpha.4" [[package]] name = "enum-map" @@ -757,7 +757,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hl" -version = "0.29.0-alpha.3" +version = "0.29.0-alpha.4" dependencies = [ "atoi", "bincode", diff --git a/Cargo.toml b/Cargo.toml index c87f58d7..6f093c2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ members = [".", "crate/encstr"] [workspace.package] repository = "https://github.com/pamburus/hl" authors = ["Pavel Ivanov "] -version = "0.29.0-alpha.3" +version = "0.29.0-alpha.4" edition = "2021" license = "MIT" diff --git a/Makefile b/Makefile index 85f3cda1..0eb97bde 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/pool.rs b/src/pool.rs index aa47538e..0a89bc1b 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -3,18 +3,21 @@ use crossbeam_queue::SegQueue; // --- +#[allow(dead_code)] pub trait Pool: Checkout + Checkin {} impl + Checkin> Pool for U {} // --- +#[allow(dead_code)] pub trait Checkout { fn checkout(&self) -> T; } // --- +#[allow(dead_code)] pub trait Checkin { fn checkin(&self, item: T); } diff --git a/src/replay.rs b/src/replay.rs index f780f568..2f1a4d28 100644 --- a/src/replay.rs +++ b/src/replay.rs @@ -610,6 +610,7 @@ impl RewindingReaderBuilder { // --- +#[allow(dead_code)] trait ReadSeek: Read + Seek {} impl ReadSeek for T {}