From 7765aa9fb7db347639c9764968261f59abb88993 Mon Sep 17 00:00:00 2001 From: QuantumExplorer Date: Mon, 15 Jul 2024 22:21:00 +0700 Subject: [PATCH] fix: forgot a ) char in a display method (#319) * set grovedbg-types version (#316) * update grovedbg-types manifest (#317) * fix: forgot a ) char in a display method --------- Co-authored-by: fominok --- grovedb/Cargo.toml | 2 +- grovedb/src/element/mod.rs | 4 ++-- grovedbg-types/Cargo.toml | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/grovedb/Cargo.toml b/grovedb/Cargo.toml index 57a27479..b8601b15 100644 --- a/grovedb/Cargo.toml +++ b/grovedb/Cargo.toml @@ -26,7 +26,7 @@ nohash-hasher = { version = "0.2.0", optional = true } indexmap = { version = "2.2.6"} intmap = { version = "2.0.0", optional = true } grovedb-path = { version = "1.0.0-rc.2", path = "../path" } -grovedbg-types = { path = "../grovedbg-types", optional = true } +grovedbg-types = { version = "1.0.0-rc.2", path = "../grovedbg-types", optional = true } tokio = { version = "1.37.0", features = ["rt-multi-thread", "net"], optional = true } axum = { version = "0.7.5", features = ["macros"], optional = true } tower-http = { version = "0.5.2", features = ["fs"], optional = true } diff --git a/grovedb/src/element/mod.rs b/grovedb/src/element/mod.rs index a6add9e6..ad2540e3 100644 --- a/grovedb/src/element/mod.rs +++ b/grovedb/src/element/mod.rs @@ -121,7 +121,7 @@ impl fmt::Display for Element { Element::SumItem(sum_value, flags) => { write!( f, - "SumItem({}{}", + "SumItem({}{})", sum_value, flags .as_ref() @@ -131,7 +131,7 @@ impl fmt::Display for Element { Element::SumTree(root_key, sum_value, flags) => { write!( f, - "SumTree({}, {}{}", + "SumTree({}, {}{})", root_key.as_ref().map_or("None".to_string(), hex::encode), sum_value, flags diff --git a/grovedbg-types/Cargo.toml b/grovedbg-types/Cargo.toml index 300eb5c7..a3a2878e 100644 --- a/grovedbg-types/Cargo.toml +++ b/grovedbg-types/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "grovedbg-types" -version = "0.1.0" +version = "1.0.0-rc.2" edition = "2021" +description = "Common type definitions for data exchange over GroveDBG protocol" +authors = ["Evgeny Fomin "] +license = "MIT" +repository = "https://github.com/dashpay/grovedb" [dependencies] serde = { version = "1.0.201", features = ["derive"] }