Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Jan 14, 2025
1 parent 3adef42 commit f916e0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage/src/rocksdb_storage/storage_context/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ use integer_encoding::VarInt;
use rocksdb::{ColumnFamily, WriteBatchWithTransaction};

use super::make_prefixed_key;
use crate::{Batch, StorageBatch};

pub use crate::rocksdb_storage::storage::SubtreePrefix;

Check failure on line 10 in storage/src/rocksdb_storage/storage_context/batch.rs

View workflow job for this annotation

GitHub Actions / clippy

type alias import `SubtreePrefix` is private

error[E0603]: type alias import `SubtreePrefix` is private --> storage/src/rocksdb_storage/storage_context/batch.rs:10:42 | 10 | pub use crate::rocksdb_storage::storage::SubtreePrefix; | ^^^^^^^^^^^^^ private type alias import | note: the type alias import `SubtreePrefix` is defined here... --> storage/src/rocksdb_storage/storage.rs:54:39 | 54 | storage::{AbstractBatchOperation, SubtreePrefix}, | ^^^^^^^^^^^^^ note: ...and refers to the type alias `SubtreePrefix` which is defined here --> storage/src/storage.rs:45:1 | 45 | pub type SubtreePrefix = [u8; 32]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly help: import `SubtreePrefix` through the re-export | 10 | pub use storage::SubtreePrefix; | ~~~~~~~~~~~~~~~~~~~~~~
use crate::{Batch, StorageBatch};

/// Wrapper to RocksDB batch.
/// All calls go to RocksDB batch, but wrapper handles prefixes and column
Expand Down

0 comments on commit f916e0b

Please sign in to comment.