Skip to content

Commit

Permalink
Merge #78
Browse files Browse the repository at this point in the history
78: Add "Send" marker impl for Journal r=jmesmon a=bruceg

Closes #75

Co-authored-by: Bruce Guenter <bruce@untroubled.org>
  • Loading branch information
bors[bot] and bruceg committed Dec 23, 2019
2 parents 255b09a + 0bc7146 commit 2873d1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/journal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ pub struct Journal {
j: *mut ffi::sd_journal,
}

// We don't allow any thread unsafe operations on `Journal`
// so it is safe to mark it as `Send`
unsafe impl Send for Journal {}

/// Represents the set of journal files to read.
#[derive(Clone, Debug)]
pub enum JournalFiles {
Expand Down

0 comments on commit 2873d1d

Please sign in to comment.