From f1a8f3ad61374f80b9f925e9aadb91d80653b4a2 Mon Sep 17 00:00:00 2001 From: David Ross Date: Thu, 23 Mar 2023 00:01:31 -0700 Subject: [PATCH] Reformat code --- rustfmt.toml | 6 ------ src/lib.rs | 7 ++++--- src/log_impl.rs | 5 ++++- 3 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml deleted file mode 100644 index 994dd04..0000000 --- a/rustfmt.toml +++ /dev/null @@ -1,6 +0,0 @@ -condense_wildcard_suffixes = true -wrap_comments = true -format_code_in_doc_comments = true -merge_imports = true -edition = "2018" -version = "One" diff --git a/src/lib.rs b/src/lib.rs index f78df14..5f215c8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -394,9 +394,10 @@ pub fn log_reopen(path: &Path, signal: Option) -> io::Result>(path: &Path, signals: S) - -> io::Result> -{ +pub fn log_reopen1>( + path: &Path, + signals: S, +) -> io::Result> { let p = path.to_owned(); let r = reopen1::Reopen::new(Box::new(move || log_file(&p)))?; diff --git a/src/log_impl.rs b/src/log_impl.rs index d026df4..ce27342 100644 --- a/src/log_impl.rs +++ b/src/log_impl.rs @@ -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;