fix: apply automatic clippy fixes across workspace
This commit is contained in:
1 parent
73ab5037d8
commit
5da422d23a
12 files changed
+99
-115
No files matched your search
+3
-6
@@ -12,10 +12,7 @@ fn main() {
|
||||
|
||||
let is_dirty = Command::new("git")
|
||||
.args(["status", "--porcelain"])
|
||||
.output()
|
||||
.ok()
|
||||
.map(|out| !out.stdout.is_empty())
|
||||
.unwrap_or(false);
|
||||
.output().is_ok_and(|out| !out.stdout.is_empty());
|
||||
|
||||
if is_dirty {
|
||||
git_hash.push_str("-dirty");
|
||||
@@ -23,8 +20,8 @@ fn main() {
|
||||
|
||||
let build_date = chrono::Local::now().format("%y.%m.%d.%H%M%S").to_string();
|
||||
|
||||
let version = format!("{} ({})", build_date, git_hash);
|
||||
println!("cargo:rustc-env=APP_VERSION={}", version);
|
||||
let version = format!("{build_date} ({git_hash})");
|
||||
println!("cargo:rustc-env=APP_VERSION={version}");
|
||||
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "windows" {
|
||||
let mut res = winres::WindowsResource::new();
|
||||
|
||||
@@ -11,9 +11,9 @@ fn test_eager_tools_parity() {
|
||||
let memory_source = std::fs::read_to_string(entry.path()).unwrap();
|
||||
let parts: Vec<&str> = memory_source.split("crate::mcp::tool_def").collect();
|
||||
for part in parts.iter().skip(1) {
|
||||
if let Some(start) = part.find("\"") {
|
||||
if let Some(start) = part.find('"') {
|
||||
let rest = &part[start + 1..];
|
||||
if let Some(end) = rest.find("\"") {
|
||||
if let Some(end) = rest.find('"') {
|
||||
memory_tools.insert(rest[..end].to_string());
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ fn test_eager_tools_parity() {
|
||||
&& let Some(start) = line.find("\"name\": \"")
|
||||
{
|
||||
let rest = &line[start + 9..];
|
||||
if let Some(end) = rest.find("\"") {
|
||||
if let Some(end) = rest.find('"') {
|
||||
nvim_tools.insert(rest[..end].to_string());
|
||||
}
|
||||
}
|
||||
@@ -57,8 +57,7 @@ fn test_eager_tools_parity() {
|
||||
let name = tool.as_str().unwrap();
|
||||
assert!(
|
||||
memory_tools.contains(name),
|
||||
"Windows config Memory tool '{}' not implemented in handlers.rs!",
|
||||
name
|
||||
"Windows config Memory tool '{name}' not implemented in handlers.rs!"
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -68,8 +67,7 @@ fn test_eager_tools_parity() {
|
||||
let name = tool.as_str().unwrap();
|
||||
assert!(
|
||||
nvim_tools.contains(name),
|
||||
"Windows config Nvim tool '{}' not implemented in nvim-core!",
|
||||
name
|
||||
"Windows config Nvim tool '{name}' not implemented in nvim-core!"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user