Skip to content

windows源码构建910/912,构建llm-wiki时报warning #278

@crack0309-eng

Description

@crack0309-eng

warning: unused import: std::os::windows::process::CommandExt
--> src\commands\codex_cli.rs:71:13
|
71 | use std::os::windows::process::CommandExt;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] (part of #[warn(unused)]) on by default

warning: value assigned to restart_count is never read
--> src\clip_server.rs:45:38
|
45 | let mut restart_count: u32 = 0;
| ^
|
= help: maybe it is overwritten before being read?
= note: #[warn(unused_assignments)] (part of #[warn(unused)]) on by default

warning: irrefutable if let pattern
--> src\commands\fs.rs:483:24
|
483 | if let docx_rs::TableChild::TableRow(tr) = row {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this pattern will always match, so the if let is useless
= help: consider replacing the if let with a let
= note: #[warn(irrefutable_let_patterns)] on by default

warning: irrefutable if let pattern
--> src\commands\fs.rs:486:32
|
486 | ... if let docx_rs::TableRowChild::TableCell(tc) = cell {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this pattern will always match, so the if let is useless
= help: consider replacing the if let with a let

warning: variable in_paragraph is assigned to, but never used
--> src\commands\fs.rs:568:9
|
568 | let mut in_paragraph = false;
| ^^^^^^^^^^^^^^^^
|
= note: consider using _in_paragraph instead
= note: #[warn(unused_variables)] (part of #[warn(unused)]) on by default

warning: unused variable: tag_start
--> src\commands\fs.rs:584:17
|
584 | let tag_start = i;
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _tag_start

warning: value assigned to in_paragraph is never read
--> src\commands\fs.rs:610:21
|
610 | in_paragraph = true;
| ^^^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?

warning: value assigned to in_paragraph is never read
--> src\commands\fs.rs:631:21
|
631 | in_paragraph = false;
| ^^^^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?

warning: function extract_xlsx_markdown is never used
--> src\commands\fs.rs:819:4
|
819 | fn extract_xlsx_markdown(_archive: &mut zip::ZipArchivefs::File) -> Result<String, String> {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] (part of #[warn(unused)]) on by default

Building [=======================> ] 910/912: llm-wiki

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions