ci(deps): bump cosign to v2.2.3 to avoid sigstore TUF invalid key iss… #144
Rust Clippy Report
32 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 32 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check warning on line 209 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:199:1
|
199 | / pub unsafe extern "C" fn context_get_result(
200 | | context: &Context,
201 | | uuid_hex: *mut u8,
202 | | matched_field: *const i8,
... |
208 | | capture_values_len: *mut usize,
209 | | ) -> isize {
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 194 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:194:1
|
194 | pub unsafe extern "C" fn context_reset(context: &mut Context) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 174 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:168:1
|
168 | / pub unsafe extern "C" fn context_add_value(
169 | | context: &mut Context,
170 | | field: *const i8,
171 | | value: &CValue,
172 | | errbuf: *mut u8,
173 | | errbuf_len: *mut usize,
174 | | ) -> bool {
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 163 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:163:1
|
163 | pub unsafe extern "C" fn context_free(context: *mut Context) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 158 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:158:1
|
158 | pub unsafe extern "C" fn context_new(schema: &Schema) -> *mut Context {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 140 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:136:1
|
136 | / pub unsafe extern "C" fn router_get_fields(
137 | | router: &Router,
138 | | fields: *mut *const u8,
139 | | fields_len: *mut usize,
140 | | ) -> usize {
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 131 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:131:1
|
131 | pub unsafe extern "C" fn router_execute(router: &Router, context: &mut Context) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 123 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:119:1
|
119 | / pub unsafe extern "C" fn router_remove_matcher(
120 | | router: &mut Router,
121 | | priority: usize,
122 | | uuid: *const i8,
123 | | ) -> bool {
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 100 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:93:1
|
93 | / pub unsafe extern "C" fn router_add_matcher(
94 | | router: &mut Router,
95 | | priority: usize,
96 | | uuid: *const i8,
... |
99 | | errbuf_len: *mut usize,
100 | | ) -> bool {
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 87 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:87:1
|
87 | pub unsafe extern "C" fn router_free(router: *mut Router) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 82 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:82:1
|
82 | pub unsafe extern "C" fn router_new(schema: &Schema) -> *mut Router {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 73 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:73:1
|
73 | pub unsafe extern "C" fn schema_add_field(schema: &mut Schema, field: *const i8, typ: Type) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 68 in src/ffi.rs
github-actions / Rust Clippy Report
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:68:1
|
68 | pub unsafe extern "C" fn schema_free(schema: *mut Schema) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `-W clippy::missing-safety-doc` implied by `-W clippy::style`
= help: to override `-W clippy::style` add `#[allow(clippy::missing_safety_doc)]`
Check warning on line 313 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:313:31
|
313 | pub fn parse(source: &str) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 296 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:296:69
|
296 | fn parse_expression(pair: Pair<Rule>, pratt: &PrattParser<Rule>) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 284 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:284:63
|
284 | fn parse_term(pair: Pair<Rule>, pratt: &PrattParser<Rule>) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 270 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:270:6
|
270 | ) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 223 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:223:46
|
223 | fn parse_transform_func(pair: Pair<Rule>) -> ParseResult<Lhs> {
| ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 188 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:188:41
|
188 | fn parse_predicate(pair: Pair<Rule>) -> ParseResult<Predicate> {
| ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 166 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:166:43
|
166 | fn parse_int_literal(pair: Pair<Rule>) -> ParseResult<i64> {
| ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 162 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:162:44
|
162 | fn parse_ipv6_literal(pair: Pair<Rule>) -> ParseResult<Ipv6Addr> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 159 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:159:44
|
159 | fn parse_ipv4_literal(pair: Pair<Rule>) -> ParseResult<Ipv4Addr> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 153 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:153:49
|
153 | fn parse_ipv4_cidr_literal(pair: Pair<Rule>) -> ParseResult<Ipv4Cidr> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 126 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:126:46
|
126 | fn parse_rawstr_literal(pair: Pair<Rule>) -> ParseResult<String> {
| ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
Check warning on line 110 in src/parser.rs
github-actions / Rust Clippy Report
the `Err`-variant returned from this function is very large
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:110:43
|
110 | fn parse_str_literal(pair: Pair<Rule>) -> ParseResult<String> {
| ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err