Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
daboross committed Mar 23, 2023
1 parent f8a0744 commit f1a8f3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 0 additions & 6 deletions rustfmt.toml

This file was deleted.

7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,10 @@ pub fn log_reopen(path: &Path, signal: Option<libc::c_int>) -> io::Result<reopen
/// This function requires the `reopen-1` feature to be enabled.
#[cfg(all(not(windows), feature = "reopen-1"))]
#[inline]
pub fn log_reopen1<S: IntoIterator<Item = libc::c_int>>(path: &Path, signals: S)
-> io::Result<reopen1::Reopen<File>>
{
pub fn log_reopen1<S: IntoIterator<Item = libc::c_int>>(
path: &Path,
signals: S,
) -> io::Result<reopen1::Reopen<File>> {
let p = path.to_owned();
let r = reopen1::Reopen::new(Box::new(move || log_file(&p)))?;

Expand Down
5 changes: 4 additions & 1 deletion src/log_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,10 @@ impl Log for Sender {
fn flush(&self) {}
}

#[cfg(all(not(windows), any(feature = "syslog-3", feature = "syslog-4", feature = "syslog-6")))]
#[cfg(all(
not(windows),
any(feature = "syslog-3", feature = "syslog-4", feature = "syslog-6")
))]
macro_rules! send_syslog {
($logger:expr, $level:expr, $message:expr) => {
use log::Level;
Expand Down

0 comments on commit f1a8f3a

Please # to comment.