This is an automated email from the ASF dual-hosted git repository.
gkoszyk pushed a commit to branch metadata_module_init
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/metadata_module_init by this
push:
new b9bfd8b61 fix clippy warning
b9bfd8b61 is described below
commit b9bfd8b61f5b819537d9b6536b4532b0b7544c09
Author: numminex <[email protected]>
AuthorDate: Mon Nov 17 21:13:22 2025 +0100
fix clippy warning
---
core/modules/consensus/src/lib.rs | 2 +-
core/modules/metadata/src/impls/metadata.rs | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/modules/consensus/src/lib.rs
b/core/modules/consensus/src/lib.rs
index 58091f7e6..c3241d3c7 100644
--- a/core/modules/consensus/src/lib.rs
+++ b/core/modules/consensus/src/lib.rs
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
-pub trait consensus {
+pub trait Consensus {
type RequestMessage;
type ReplicateMessage;
type AckMessage;
diff --git a/core/modules/metadata/src/impls/metadata.rs
b/core/modules/metadata/src/impls/metadata.rs
index 1ef56d6be..659112f1e 100644
--- a/core/modules/metadata/src/impls/metadata.rs
+++ b/core/modules/metadata/src/impls/metadata.rs
@@ -14,13 +14,13 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
-use consensus::consensus;
+use consensus::Consensus;
// TODO: Define a trait (probably in some external crate)
#[expect(unused)]
trait Metadata<C>
where
- C: consensus,
+ C: Consensus,
{
fn on_request(&self, message: C::RequestMessage);
fn on_replicate(&self, message: C::ReplicateMessage);
@@ -37,7 +37,7 @@ struct IggyMetadata<C, M, J, S> {
impl<C, M, J, S> Metadata<C> for IggyMetadata<C, M, J, S>
where
- C: consensus,
+ C: Consensus,
{
fn on_request(&self, _message: C::RequestMessage) {
todo!()