From d064416a37cd9221786af8122545704c0742e652 Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> Date: Thu, 23 Feb 2023 12:11:45 +0100 Subject: [PATCH] format docstrings (still WIP) --- crates/main/main.rs | 4 ++-- crates/pacdef_core/src/core.rs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/main/main.rs b/crates/main/main.rs index e6b3afa..2ee6ed8 100644 --- a/crates/main/main.rs +++ b/crates/main/main.rs @@ -25,8 +25,8 @@ fn main() -> ExitCode { handle_final_result(main_inner()) } -/// Skip printing the error chain when searching packages yields no results, otherwise report error -/// chain. +/// Skip printing the error chain when searching packages yields no results, +/// otherwise report error chain. fn handle_final_result(result: Result<()>) -> ExitCode { match result { Ok(_) => ExitCode::SUCCESS, diff --git a/crates/pacdef_core/src/core.rs b/crates/pacdef_core/src/core.rs index 4562402..eb7d7dd 100644 --- a/crates/pacdef_core/src/core.rs +++ b/crates/pacdef_core/src/core.rs @@ -43,12 +43,13 @@ impl Pacdef { /// Run the action that was provided by the user as first argument. /// - /// For convenience sake, all called functions take a `&self` argument, even if these are not - /// strictly required. + /// For convenience sake, all called functions take a `&self` argument, even if + /// these are not strictly required. /// /// # Panics /// - /// Panics if the user passed an unexpected action. This means all fields from `crate::action::Action` must be matched in this function. + /// Panics if the user passed an unexpected action. This means all fields from + /// `crate::action::Action` must be matched in this function. /// /// # Errors ///