From becdb8f4137e5d7e8dd4243633eeee5ad90065c1 Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:32:14 +0200 Subject: [PATCH] docs(core): add panics section --- crates/pacdef_core/src/core.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/pacdef_core/src/core.rs b/crates/pacdef_core/src/core.rs index be66264..ccf2839 100644 --- a/crates/pacdef_core/src/core.rs +++ b/crates/pacdef_core/src/core.rs @@ -48,6 +48,10 @@ impl Pacdef { /// # Errors /// /// This function propagates errors from the underlying functions. + /// + /// # Panics + /// + /// This function panics if the `args` field is `None`. #[allow(clippy::unit_arg)] pub fn run_action_from_arg(mut self) -> Result<()> { match self