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

fix(deps): update rust crate nftables to 0.6.0 #1166

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

fix(deps): update rust crate nftables to 0.6.0

b5c2f8e
Select commit
Loading
Failed to load commit list.
Open

fix(deps): update rust crate nftables to 0.6.0 #1166

fix(deps): update rust crate nftables to 0.6.0
b5c2f8e
Select commit
Loading
Failed to load commit list.
Cirrus CI / build failed Jan 24, 2025 in 1m 17s

Task Summary

Instruction main failed in 01:01

Details

✅ 00:02 clone
✅ 00:01 cargo
✅ 00:01 targets
✅ 00:00 bin
✅ 00:07 setup
❌ 01:01 main

   |                                        +++++++

error[E0308]: mismatched types
    --> src/firewall/nft.rs:1070:15
     |
1070 |           expr: vec![
     |  _______________^
1071 | |             get_ip_match(dns_ip, "daddr", stmt::Operator::EQ),
1072 | |             stmt::Statement::Match(stmt::Match {
1073 | |                 left: expr::Expression::Named(expr::NamedExpression::Meta(expr::Meta {
...    |
1101 | |             })),
1102 | |         ],
     | |_________^ expected `Cow<'_, [Statement<'_>]>`, found `Vec<_, _>`
     |
     = note: expected enum `Cow<'_, [Statement<'_>]>`
              found struct `Vec<_, _>`
     = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
help: call `Into::into` on this expression to convert `Vec<_, _>` into `Cow<'_, [Statement<'_>]>`
     |
1102 |         ].into(),
     |          +++++++

error[E0308]: mismatched types
    --> src/firewall/nft.rs:1122:15
     |
1122 |         name: name.to_string(),
     |               ^^^^^^^^^^^^^^^^ expected `Cow<'_, str>`, found `String`
     |
     = note: expected enum `Cow<'_, str>`
              found struct `std::string::String`
help: call `Into::into` on this expression to convert `std::string::String` into `Cow<'_, str>`
     |
1122 |         name: name.to_string().into(),
     |                               +++++++

error[E0308]: mismatched types
    --> src/firewall/nft.rs:1153:15
     |
1153 |         expr: conditions,
     |               ^^^^^^^^^^ expected `Cow<'_, [Statement<'_>]>`, found `Vec<Statement<'_>>`
     |
     = note: expected enum `Cow<'_, [Statement<'_>]>`
              found struct `Vec<Statement<'_>>`
help: call `Into::into` on this expression to convert `Vec<Statement<'_>>` into `Cow<'_, [Statement<'_>]>`
     |
1153 |         expr: conditions.into(),
     |                         +++++++

Some errors have detailed explanations: E0061, E0106, E0277, E0308, E0599, E0614.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `netavark` (lib) due to 85 previous errors
warning: build failed, waiting for other jobs to finish...
make: *** [Makefile:57: build_netavark] Error 101

Exit status: 2������������������������������������������������������������������