diff --git a/Cargo.toml b/Cargo.toml index d9b3d83..bc4f5f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kip_db" -version = "0.1.2-alpha.26" +version = "0.1.2-alpha.26.fix1" edition = "2021" authors = ["Kould "] description = "轻量级、异步 基于LSM Leveled Compaction K-V数据库" diff --git a/rust-toolchain b/rust-toolchain index 8d5e8e7..7df939e 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2024-01-18 \ No newline at end of file +nightly-2024-04-27 \ No newline at end of file diff --git a/src/kernel/lsm/iterator/mod.rs b/src/kernel/lsm/iterator/mod.rs index c76bd0c..a77b586 100644 --- a/src/kernel/lsm/iterator/mod.rs +++ b/src/kernel/lsm/iterator/mod.rs @@ -28,6 +28,7 @@ pub trait SeekIter<'a>: Iter<'a> { } /// 向前迭代器 +#[allow(dead_code)] pub(crate) trait ForwardIter<'a>: Iter<'a> { fn try_prev(&mut self) -> KernelResult>; } diff --git a/src/lib.rs b/src/lib.rs index a05bde5..37964a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ #![feature(cursor_remaining)] #![feature(slice_pattern)] #![feature(is_sorted)] +#![feature(trait_upcasting)] extern crate core;