Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Congyuwang committed Mar 30, 2024
1 parent 1cdfd3e commit f6c88fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ fn py_to_value_types<'a, 'b>(value: &'a Bound<'b, PyAny>) -> PyResult<ValueTypes

/// this function is used for decoding value from bytes
#[inline(always)]
pub(crate) fn decode_value<'a>(
pub(crate) fn decode_value(
py: Python,
bytes: &'a [u8],
bytes: &[u8],
loads: &PyObject,
raw_mode: bool,
) -> PyResult<PyObject> {
Expand Down
4 changes: 2 additions & 2 deletions src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl RdictIter {
/// del iter, db
/// Rdict.destroy(path, Options())
pub fn seek(&mut self, key: &Bound<PyAny>) -> PyResult<()> {
let key = encode_key(&key, self.raw_mode)?;
let key = encode_key(key, self.raw_mode)?;
unsafe {
librocksdb_sys::rocksdb_iter_seek(
self.inner,
Expand Down Expand Up @@ -225,7 +225,7 @@ impl RdictIter {
/// del iter, db
/// Rdict.destroy(path, Options())
pub fn seek_for_prev(&mut self, key: &Bound<PyAny>) -> PyResult<()> {
let key = encode_key(&key, self.raw_mode)?;
let key = encode_key(key, self.raw_mode)?;
unsafe {
librocksdb_sys::rocksdb_iter_seek_for_prev(
self.inner,
Expand Down

0 comments on commit f6c88fb

Please sign in to comment.