From 1a3476e4fb852b8b41c8abe6a3dc976db00e6b69 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 5 Nov 2025 15:52:44 -0700 Subject: [PATCH] style: Added an import for Anyhow's Result in the macros module --- src/config/macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/macros.rs b/src/config/macros.rs index 7fa6d60..d6c021f 100644 --- a/src/config/macros.rs +++ b/src/config/macros.rs @@ -1,7 +1,7 @@ use crate::config::{Config, GlobalConfig, RoleLike}; use crate::repl::{run_repl_command, split_args_text}; use crate::utils::{multiline_text, AbortSignal}; -use anyhow::anyhow; +use anyhow::{anyhow, Result}; use indexmap::IndexMap; use parking_lot::RwLock; use serde::Deserialize; @@ -13,7 +13,7 @@ pub async fn macro_execute( name: &str, args: Option<&str>, abort_signal: AbortSignal, -) -> anyhow::Result<()> { +) -> Result<()> { let macro_value = Config::load_macro(name)?; let (mut new_args, text) = split_args_text(args.unwrap_or_default(), cfg!(windows)); if !text.is_empty() { @@ -53,7 +53,7 @@ pub struct Macro { } impl Macro { - pub fn resolve_variables(&self, args: &[String]) -> anyhow::Result> { + pub fn resolve_variables(&self, args: &[String]) -> Result> { let mut output = IndexMap::new(); for (i, variable) in self.variables.iter().enumerate() { let value = if variable.rest && i == self.variables.len() - 1 {