fix: address clippy lint warnings

This commit is contained in:
Hunter Bown
2026-02-19 00:06:41 -06:00
parent 304644e448
commit 8869541fbe
2 changed files with 2 additions and 7 deletions
+1 -3
View File
@@ -151,9 +151,7 @@ fn modal_block() -> Block<'static> {
}
fn parse_section_term(term: &str) -> Option<(PaletteSection, String)> {
let mut parts = term.splitn(2, ':');
let section = parts.next()?;
let query = parts.next()?;
let (section, query) = term.split_once(':')?;
if section.is_empty() || query.is_empty() {
return None;
+1 -4
View File
@@ -2851,10 +2851,7 @@ fn run_git_query(workspace: &Path, args: &[&str]) -> std::io::Result<String> {
.current_dir(workspace)
.output()?;
if !output.status.success() {
return Err(std::io::Error::new(
std::io::ErrorKind::Other,
"git command failed",
));
return Err(std::io::Error::other("git command failed"));
}
Ok(String::from_utf8_lossy(&output.stdout).to_string())
}