Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue report welcome #1

Open
XingXingDeTomato opened this issue Jul 17, 2024 · 1 comment
Open

Issue report welcome #1

XingXingDeTomato opened this issue Jul 17, 2024 · 1 comment

Comments

@XingXingDeTomato
Copy link
Collaborator

No description provided.

@1099438829
Copy link

很多无用的警告,都是冗余的变量导致的

warning: method by_name_bool is never used
--> target/patch/protobuf-parse-3.4.0/src/pure/convert/option_resolver.rs:173:8
|
170 | pub(crate) trait ProtobufOptions {
| --------------- method in this trait
...
173 | fn by_name_bool(&self, name: &str) -> anyhow::Result<Option> {
| ^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: variant NotUtf8 is never constructed
--> target/patch/protobuf-parse-3.4.0/src/pure/parser.rs:53:5
|
46 | pub(crate) enum ParserError {
| ----------- variant in this enum
...
53 | NotUtf8,
| ^^^^^^^
|
= note: ParserError has a derived impl for the trait Debug, but this is intentionally ignored during dead code analysis

warning: trait ToU8 is never used
--> target/patch/protobuf-parse-3.4.0/src/pure/parser.rs:115:7
|
115 | trait ToU8 {
| ^^^^

warning: trait ToChar is never used
--> target/patch/protobuf-parse-3.4.0/src/pure/parser.rs:127:7
|
127 | trait ToChar {
| ^^^^^^

warning: struct RelPathBuf is never constructed
--> target/patch/protobuf-parse-3.4.0/src/rel_path.rs:13:19
|
13 | pub(crate) struct RelPathBuf {
| ^^^^^^^^^^

warning: associated function new is never used
--> target/patch/protobuf-parse-3.4.0/src/rel_path.rs:18:19
|
17 | impl RelPath {
| ------------ associated function in this implementation
18 | pub(crate) fn new(path: &Path) -> &RelPath {
| ^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants