Skip to content

Commit

Permalink
Reintroduce some Debug traits requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Dec 19, 2024
1 parent 705950b commit b13c94f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion linera-views/src/backends/dual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use crate::{
};

/// The initial configuration of the system.
#[derive(Debug)]
pub struct DualStoreConfig<C1, C2> {
/// The first config.
pub first_config: C1,
Expand All @@ -24,7 +25,7 @@ pub struct DualStoreConfig<C1, C2> {
}

/// The store in use.
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub enum StoreInUse {
/// The first store.
First,
Expand Down
3 changes: 2 additions & 1 deletion linera-views/src/backends/dynamo_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl TransactionBuilder {
}

/// A DynamoDB client.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct DynamoDbStoreInternal {
client: Client,
namespace: String,
Expand All @@ -324,6 +324,7 @@ pub struct DynamoDbStoreInternal {
}

/// The initial configuration of the system
#[derive(Debug)]
pub struct DynamoDbStoreInternalConfig {
/// The AWS configuration
config: aws_sdk_dynamodb::Config,
Expand Down
1 change: 1 addition & 0 deletions linera-views/src/backends/indexed_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use crate::{
};

/// The initial configuration of the system
#[derive(Debug)]
pub struct IndexedDbStoreConfig {
/// The common configuration of the key value store
pub common_config: CommonStoreConfig,
Expand Down
2 changes: 1 addition & 1 deletion linera-views/src/backends/journaling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl<T> DirectKeyValueStore for T where
}

/// The header that contains the current state of the journal.
#[derive(Serialize, Deserialize, Default)]
#[derive(Serialize, Deserialize, Debug, Default)]
struct JournalHeader {
block_count: u32,
}
Expand Down
1 change: 1 addition & 0 deletions linera-views/src/backends/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use crate::{
};

/// The initial configuration of the system
#[derive(Debug)]
pub struct MemoryStoreConfig {
/// The common configuration of the key value store
pub common_config: CommonStoreInternalConfig,
Expand Down
4 changes: 2 additions & 2 deletions linera-views/src/backends/rocks_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub struct RocksDbStoreInternal {
}

/// The initial configuration of the system
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct RocksDbStoreInternalConfig {
/// The path to the storage containing the namespaces
path_with_guard: PathWithGuard,
Expand Down Expand Up @@ -559,7 +559,7 @@ pub enum RocksDbStoreInternalError {
}

/// A path and the guard for the temporary directory if needed
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct PathWithGuard {
/// The path to the data
pub path_buf: PathBuf,
Expand Down
1 change: 1 addition & 0 deletions linera-views/src/backends/scylla_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ fn get_big_root_key(root_key: &[u8]) -> Vec<u8> {
}

/// The type for building a new ScyllaDB Key Value Store
#[derive(Debug)]
pub struct ScyllaDbStoreInternalConfig {
/// The url to which the requests have to be sent
pub uri: String,
Expand Down
6 changes: 3 additions & 3 deletions linera-views/src/views/bucket_queue_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ enum KeyTag {
}

/// The `StoredIndices` contains the description of the stored buckets.
#[derive(Clone, Default, Serialize, Deserialize)]
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
struct StoredIndices {
/// The stored buckets with the first index being the size (at most N) and the
/// second one is the index in the storage. If the index is 0 then it corresponds
Expand All @@ -69,7 +69,7 @@ impl StoredIndices {
/// and the new_back_values are the ones accessed by the front operation.
/// If position is not trivial, then the first index is the relevant
/// bucket for the front and the second index is the position in the index.
#[derive(Clone)]
#[derive(Clone, Debug)]
struct Cursor {
position: Option<(usize, usize)>,
}
Expand All @@ -90,7 +90,7 @@ impl Cursor {
}
}

#[derive(Clone)]
#[derive(Clone, Debug)]
enum Bucket<T> {
Loaded { data: Vec<T> },
NotLoaded { length: usize },
Expand Down

0 comments on commit b13c94f

Please sign in to comment.