From 78ba6d5f11a94d273d9388e82ef865ff139dd8da Mon Sep 17 00:00:00 2001 From: Zhenchi Date: Sat, 21 Oct 2023 00:09:50 +0800 Subject: [PATCH] chore: prepare 0.1.4 (#30) * chore: prepare 0.1.4 Signed-off-by: Zhenchi * fix: lint Signed-off-by: Zhenchi --------- Signed-off-by: Zhenchi --- .github/workflows/ci.yml | 8 +++++--- Cargo.toml | 2 +- src/tsc_now.rs | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61dad1f..1c9ba3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,10 @@ jobs: - name: Check format run: cargo fmt --all -- --check - name: Build - run: cargo build --workspace --all-targets + run: cargo build --workspace --all-targets --all-features + - name: Clippy + run: cargo clippy --workspace --all-targets --all-features -- -D warnings - name: Run tests - run: cargo test --workspace --all-targets -- --nocapture + run: cargo test --workspace --all-targets --all-features -- --nocapture - name: Run benches - run: cargo bench --workspace --all-targets + run: cargo bench --workspace --all-targets --all-features diff --git a/Cargo.toml b/Cargo.toml index 3741753..a95b419 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minstant" -version = "0.1.3" +version = "0.1.4" authors = ["The TiKV Authors"] edition = "2021" license = "MIT" diff --git a/src/tsc_now.rs b/src/tsc_now.rs index 4eaf08f..c811d02 100644 --- a/src/tsc_now.rs +++ b/src/tsc_now.rs @@ -5,8 +5,6 @@ use std::time::Instant; use std::{cell::UnsafeCell, fs::read_to_string}; -type Error = Box; - static TSC_STATE: TSCState = TSCState { is_tsc_available: UnsafeCell::new(false), tsc_level: UnsafeCell::new(TSCLevel::Unstable),