Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ use log::warn;
use systemd::{journal, sd_journal_log};

fn main() {
use systemd::journal;
journal::print(1, &format!("Rust can talk to the journal: {:?}",
4));
journal::send(["CODE_FILE=HI", "CODE_LINE=1213", "CODE_FUNCTION=LIES"]);
journal::print(1, &format!("Rust can talk to the journal: {:?}", 4));
journal::send(&["CODE_FILE=HI", "CODE_LINE=1213", "CODE_FUNCTION=LIES"]);
journal::JournalLog::init().unwrap();
warn!("HI");
sd_journal_log!(4, "HI {:?}", 2);
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#![cfg_attr(feature = "unstable-doc-cfg", feature(doc_cfg))]
#![warn(rust_2018_idioms)]

#[cfg(all(feature = "journal", doctest))]
doc_comment::doctest!("../README.md", readme);

extern crate libsystemd_sys as ffi;

/*
Expand Down
3 changes: 0 additions & 3 deletions tests/readme.rs

This file was deleted.