From 852605592e39fbc3d64317d3ced0e97c0c92bb74 Mon Sep 17 00:00:00 2001 From: Finn Behrens Date: Wed, 19 Jan 2022 10:42:56 +0100 Subject: [PATCH] bump version to 0.7.0 Signed-Off-By: Finn Behrens --- Cargo.toml | 7 +++++-- src/journal_entry.rs | 10 +--------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b9bc6a3..4f58321 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,15 @@ [package] name = "journald" -version = "0.6.0" +version = "0.7.0" authors = ["The rust-journald Authors ", "Cody P Schafer "] license = "LGPL-2.1+" description = "A rust binding for the systemd journald api" repository = "https://github.com/nyantec/rust-journald" documentation = "https://docs.rs/journald" edition = "2018" +readme = "README.md" +keywords = [ "systemd", "journald", "linux" ] + [features] default = [] @@ -26,4 +29,4 @@ features = ["derive"] optional = true [dev-dependencies] -rand = "0.8" \ No newline at end of file +rand = "0.8" diff --git a/src/journal_entry.rs b/src/journal_entry.rs index 69c8257..b4edd03 100644 --- a/src/journal_entry.rs +++ b/src/journal_entry.rs @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize}; type JournalEntryFields = BTreeMap; -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Default)] #[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] pub struct JournalEntry { pub fields: JournalEntryFields, @@ -72,14 +72,6 @@ impl JournalEntry { } } -impl Default for JournalEntry { - fn default() -> Self { - JournalEntry { - fields: BTreeMap::::new(), - } - } -} - impl From<&JournalEntryFields> for JournalEntry { fn from(fields: &JournalEntryFields) -> Self { JournalEntry {