fix: address clippy lint warnings
This commit is contained in:
@@ -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
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user