-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
62 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ use crate::protocol::Argument; | |
/// Print the dispatched message to stderr in a following format: | ||
/// | ||
/// [timestamp] <- [email protected]_name(args) | ||
#[cfg_attr(coverage, no_coverage)] | ||
#[cfg_attr(coverage, coverage(off))] | ||
pub fn print_dispatched_message<Id: Display, Fd: AsRawFd>( | ||
interface: &str, | ||
id: u32, | ||
|
@@ -30,7 +30,7 @@ pub fn print_dispatched_message<Id: Display, Fd: AsRawFd>( | |
/// Print the send message to stderr in a following format: | ||
/// | ||
/// [timestamp] -> [email protected]_name(args) | ||
#[cfg_attr(coverage, no_coverage)] | ||
#[cfg_attr(coverage, coverage(off))] | ||
pub fn print_send_message<Id: Display, Fd: AsRawFd>( | ||
interface: &str, | ||
id: u32, | ||
|
@@ -49,7 +49,7 @@ pub fn print_send_message<Id: Display, Fd: AsRawFd>( | |
pub(crate) struct DisplaySlice<'a, D>(pub &'a [D]); | ||
|
||
impl<'a, D: Display> Display for DisplaySlice<'a, D> { | ||
#[cfg_attr(coverage, no_coverage)] | ||
#[cfg_attr(coverage, coverage(off))] | ||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
let mut it = self.0.iter(); | ||
if let Some(val) = it.next() { | ||
|
@@ -63,7 +63,7 @@ impl<'a, D: Display> Display for DisplaySlice<'a, D> { | |
} | ||
|
||
/// Print timestamp in seconds.microseconds format. | ||
#[cfg_attr(coverage, no_coverage)] | ||
#[cfg_attr(coverage, coverage(off))] | ||
fn print_timestamp() { | ||
if let Ok(timestamp) = SystemTime::now().duration_since(UNIX_EPOCH) { | ||
let sc = timestamp.as_secs(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.