Skip to content

Commit

Permalink
bump version to 0.7.0
Browse files Browse the repository at this point in the history
Signed-Off-By: Finn Behrens <[email protected]>
  • Loading branch information
kloenk committed Jan 19, 2022
1 parent 192fd85 commit 8526055
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
[package]
name = "journald"
version = "0.6.0"
version = "0.7.0"
authors = ["The rust-journald Authors <[email protected]>", "Cody P Schafer <[email protected]>"]
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 = []
Expand All @@ -26,4 +29,4 @@ features = ["derive"]
optional = true

[dev-dependencies]
rand = "0.8"
rand = "0.8"
10 changes: 1 addition & 9 deletions src/journal_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};

type JournalEntryFields = BTreeMap<String, String>;

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]
pub struct JournalEntry {
pub fields: JournalEntryFields,
Expand Down Expand Up @@ -72,14 +72,6 @@ impl JournalEntry {
}
}

impl Default for JournalEntry {
fn default() -> Self {
JournalEntry {
fields: BTreeMap::<String, String>::new(),
}
}
}

impl From<&JournalEntryFields> for JournalEntry {
fn from(fields: &JournalEntryFields) -> Self {
JournalEntry {
Expand Down

0 comments on commit 8526055

Please sign in to comment.