Skip to content

Commit b50680c

Browse files
Yogthosyogthos
authored andcommitted
Run cargo fmt
1 parent facb420 commit b50680c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/agent/tools/glob.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use rig::tool::Tool;
44
use serde::Deserialize;
55
use std::path::Path;
66

7-
use crate::agent::tools::{AskSender, PermCheck, ToolError, check_perm};
87
use crate::agent::tools::MAX_FIND_RESULTS;
8+
use crate::agent::tools::{AskSender, PermCheck, ToolError, check_perm};
99

1010
pub struct GlobTool {
1111
pub permission: Option<PermCheck>,
@@ -14,10 +14,7 @@ pub struct GlobTool {
1414

1515
impl GlobTool {
1616
pub fn new(permission: Option<PermCheck>, ask_tx: Option<AskSender>) -> Self {
17-
Self {
18-
permission,
19-
ask_tx,
20-
}
17+
Self { permission, ask_tx }
2118
}
2219
}
2320

@@ -98,8 +95,7 @@ impl Tool for GlobTool {
9895
)
9996
.await?;
10097

101-
let re = glob_to_regex(&args.pattern)
102-
.map_err(|e| ToolError::Msg(e))?;
98+
let re = glob_to_regex(&args.pattern).map_err(|e| ToolError::Msg(e))?;
10399

104100
let root = args
105101
.path

0 commit comments

Comments
 (0)