more elegant way to build ci.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 75c7b52..89920cd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,7 +19,6 @@
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-C debuginfo=1"
- RUST_VERSION: nightly-2023-08-28
jobs:
style-check:
@@ -30,17 +29,19 @@
- uses: actions/checkout@v3
with:
submodules: true
- - run: |
- rustup set auto-self-update disable
- rustup toolchain install ${RUST_VERSION} --profile minimal
- name: Setup Build Environment
run: |
sudo apt update
sudo apt install --yes protobuf-compiler
- - name: Install check binaries
+ - name: Install stable toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: nightly-2023-08-28
+ override: true
+ components: clippy, rustfmt
+ - name: Install cargo binaries
run: |
- rustup component add clippy
- rustup component add rustfmt
cargo install cargo-sort
- name: Run Style Check
run: |
@@ -56,13 +57,16 @@
- uses: actions/checkout@v3
with:
submodules: true
- - run: |
- rustup set auto-self-update disable
- rustup toolchain install ${RUST_VERSION} --profile minimal
- name: Setup Build Environment
run: |
sudo apt update
sudo apt install --yes protobuf-compiler
+ - name: Install stable toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: nightly-2023-08-28
+ override: true
- name: Run Test
run: |
make test
diff --git a/src/lib.rs b/src/lib.rs
index 9bff384..c160da0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,6 +1,6 @@
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
-//! This crate provides an user-friendly client for [HoraeDB ](https://github.com/HoraeDB /horaedb).
+//! This crate provides an user-friendly client for [HoraeDB](https://github.com/HoraeDB /horaedb).
//!
//! With this crate, you can access a standalone HoraeDB or a HoraeDB cluster
//! and manipulates the data in it. And the underlying communication between the
diff --git a/src/model/value.rs b/src/model/value.rs
index 9343eca..832a5b1 100644
--- a/src/model/value.rs
+++ b/src/model/value.rs
@@ -6,7 +6,7 @@
pub type TimestampMs = i64;
-/// The value enum to express the data in HoraeDB .
+/// The value enum to express the data in HoraeDB.
#[derive(Debug, Clone, PartialEq, PartialOrd)]
pub enum Value {
Null,
@@ -279,7 +279,7 @@
}
}
-/// The data type supported by HoraeDB .
+/// The data type supported by HoraeDB.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum DataType {
Null = 0,