fix: resolve all clippy lints (uninlined format args, range::contains, push_str single chars)
This commit is contained in:
parent
b7c49abc4d
commit
5198b6c636
@ -11,7 +11,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "2" }
|
||||
tauri = { version = "2", features = [] }
|
||||
tauri-plugin-stronghold = "2"
|
||||
tauri-plugin-dialog = "2"
|
||||
tauri-plugin-fs = "2"
|
||||
|
||||
@ -48,7 +48,7 @@ pub fn export_pdf(content_md: &str, title: &str, output_path: &str) -> anyhow::R
|
||||
};
|
||||
|
||||
current_layer.use_text(&line_info.text, font_size, margin_left, y_pos, font_ref);
|
||||
y_pos = y_pos - line_height;
|
||||
y_pos -= line_height;
|
||||
line_count += 1;
|
||||
}
|
||||
|
||||
|
||||
@ -73,7 +73,7 @@ pub fn generate_postmortem_markdown(detail: &IssueDetail) -> String {
|
||||
step.step_order, step.why_question, answer
|
||||
));
|
||||
}
|
||||
md.push_str("\n");
|
||||
md.push('\n');
|
||||
|
||||
if let Some(last) = detail.resolution_steps.last() {
|
||||
if !last.answer.is_empty() {
|
||||
@ -122,7 +122,7 @@ pub fn generate_postmortem_markdown(detail: &IssueDetail) -> String {
|
||||
if lf.redacted { "yes" } else { "no" }
|
||||
));
|
||||
}
|
||||
md.push_str("\n");
|
||||
md.push('\n');
|
||||
}
|
||||
|
||||
md.push_str("---\n\n");
|
||||
|
||||
@ -28,7 +28,7 @@ pub fn generate_rca_markdown(detail: &IssueDetail) -> String {
|
||||
if let Some(ref resolved) = issue.resolved_at {
|
||||
md.push_str(&format!("| **Resolved** | {} |\n", resolved));
|
||||
}
|
||||
md.push_str("\n");
|
||||
md.push('\n');
|
||||
|
||||
if !issue.description.is_empty() {
|
||||
md.push_str("## Description\n\n");
|
||||
@ -90,7 +90,7 @@ pub fn generate_rca_markdown(detail: &IssueDetail) -> String {
|
||||
&lf.content_hash[..8.min(lf.content_hash.len())],
|
||||
));
|
||||
}
|
||||
md.push_str("\n");
|
||||
md.push('\n');
|
||||
}
|
||||
|
||||
// Corrective Actions
|
||||
|
||||
@ -18,7 +18,7 @@ pub fn recommend_models(hw: &HardwareInfo) -> Vec<ModelRecommendation> {
|
||||
size: "2.0 GB".to_string(),
|
||||
min_ram_gb: 6.0,
|
||||
description: "Balanced Llama 3.2 model. Good for most IT triage tasks.".to_string(),
|
||||
recommended: ram >= 8.0 && ram < 16.0,
|
||||
recommended: (8.0..16.0).contains(&ram),
|
||||
},
|
||||
ModelRecommendation {
|
||||
name: "phi3.5:3.8b".to_string(),
|
||||
@ -32,14 +32,14 @@ pub fn recommend_models(hw: &HardwareInfo) -> Vec<ModelRecommendation> {
|
||||
size: "4.7 GB".to_string(),
|
||||
min_ram_gb: 10.0,
|
||||
description: "Llama 3.1 8B. Strong performance for IT analysis.".to_string(),
|
||||
recommended: ram >= 16.0 && ram < 32.0,
|
||||
recommended: (16.0..32.0).contains(&ram),
|
||||
},
|
||||
ModelRecommendation {
|
||||
name: "qwen2.5:14b".to_string(),
|
||||
size: "9.0 GB".to_string(),
|
||||
min_ram_gb: 16.0,
|
||||
description: "Qwen 2.5 14B. Excellent for complex log analysis.".to_string(),
|
||||
recommended: ram >= 24.0 && ram < 40.0,
|
||||
recommended: (24.0..40.0).contains(&ram),
|
||||
},
|
||||
ModelRecommendation {
|
||||
name: "llama3.1:70b".to_string(),
|
||||
|
||||
@ -1 +1 @@
|
||||
{"rustc_fingerprint":342305046135807909,"outputs":{"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/sarman/.rustup/toolchains/stable-aarch64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"aarch64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"neon\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.94.0 (4a4ef493e 2026-03-02)\nbinary: rustc\ncommit-hash: 4a4ef493e3a1488c6e321570238084b38948f6db\ncommit-date: 2026-03-02\nhost: aarch64-unknown-linux-gnu\nrelease: 1.94.0\nLLVM version: 21.1.8\n","stderr":""}},"successes":{}}
|
||||
{"rustc_fingerprint":3935335233893156513,"outputs":{"850482172296875736":{"success":true,"status":"","code":0,"stdout":"rustc 1.94.0 (4a4ef493e 2026-03-02)\nbinary: rustc\ncommit-hash: 4a4ef493e3a1488c6e321570238084b38948f6db\ncommit-date: 2026-03-02\nhost: aarch64-unknown-linux-gnu\nrelease: 1.94.0\nLLVM version: 21.1.8\n","stderr":""},"4592665983954943194":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/sarman/.rustup/toolchains/stable-aarch64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"aarch64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"neon\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
|
||||
Loading…
Reference in New Issue
Block a user