diff src/logging.rs @ 174:9e4ce1631bd3

Dramatically expand documentation.
author Paul Fisher <paul@pfish.zone>
date Tue, 29 Jul 2025 18:58:27 -0400
parents e27c5c667a5a
children 5e4ea9650f87
line wrap: on
line diff
--- a/src/logging.rs	Tue Jul 29 16:52:32 2025 -0400
+++ b/src/logging.rs	Tue Jul 29 18:58:27 2025 -0400
@@ -34,8 +34,8 @@
     ///
     /// ```no_run
     /// # use nonstick::PamShared;
+    /// use nonstick::location;
     /// use nonstick::logging::Level;
-    /// use nonstick::location;
     /// # fn _test(pam_hdl: impl PamShared) {
     /// # let delay_ms = 100;
     /// # let url = "https://zombo.com";
@@ -45,7 +45,11 @@
     /// nonstick::info!(pam_hdl, "using network backend");
     /// nonstick::debug!(pam_hdl, "sending GET request to {url}");
     /// // But if you really want to, you can call this yourself:
-    /// pam_hdl.log(Level::Warn, location!(), format_args!("this is unnecessarily verbose"));
+    /// pam_hdl.log(
+    ///     Level::Warn,
+    ///     location!(),
+    ///     format_args!("this is unnecessarily verbose"),
+    /// );
     /// # }
     /// ```
     #[doc = man7!(3 pam_syslog)]