From dfbfee6c8237ab63d99f92555ddf22f7fe2fb5b0 Mon Sep 17 00:00:00 2001 From: Kould <2435992353@qq.com> Date: Sun, 28 Apr 2024 17:01:15 +0800 Subject: [PATCH] config: update rustc version --- Cargo.toml | 2 +- rust-toolchain | 2 +- src/kernel/lsm/iterator/mod.rs | 1 + src/lib.rs | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) 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;