wip: enable ec2 proxy to terminate tls #26
Annotations
14 warnings
|
[clippy] src/wireguard.rs#L195:
src/wireguard.rs#L195
warning: this function has too many arguments (9/7)
--> src/wireguard.rs:195:5
|
195 | / pub async fn setup(
196 | | origin_keys: WireGuardKeys,
197 | | proxy_public_key: String,
198 | | proxy_endpoint: String,
... |
204 | | download_limit: Option<u32>, // Download limit in Mbps (proxy -> origin)
205 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
|
[clippy] src/aws/mod.rs#L142:
src/aws/mod.rs#L142
warning: this function has too many arguments (20/7)
--> src/aws/mod.rs:142:5
|
142 | / pub async fn deploy(
143 | | ingress_host: String,
144 | | ingress_port: u16,
145 | | ingress_protocol: String,
... |
162 | | acme_email: Option<String>,
163 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#too_many_arguments
|
|
[clippy] src/main.rs#L100:
src/main.rs#L100
warning: called `unwrap` on `upload_limit` after checking its variant with `is_some`
--> src/main.rs:100:48
|
99 | if upload_limit.is_some() {
| ------------------------- help: try: `if let Some(<item>) = upload_limit`
100 | info!(" - Upload limit: {} Mbps", upload_limit.unwrap());
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#unnecessary_unwrap
= note: `#[warn(clippy::unnecessary_unwrap)]` on by default
|
|
[clippy] src/main.rs#L103:
src/main.rs#L103
warning: called `unwrap` on `download_limit` after checking its variant with `is_some`
--> src/main.rs:103:50
|
102 | if download_limit.is_some() {
| --------------------------- help: try: `if let Some(<item>) = download_limit`
103 | info!(" - Download limit: {} Mbps", download_limit.unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#unnecessary_unwrap
|
|
[clippy] src/wireguard.rs#L195:
src/wireguard.rs#L195
warning: this function has too many arguments (9/7)
--> src/wireguard.rs:195:5
|
195 | / pub async fn setup(
196 | | origin_keys: WireGuardKeys,
197 | | proxy_public_key: String,
198 | | proxy_endpoint: String,
... |
204 | | download_limit: Option<u32>, // Download limit in Mbps (proxy -> origin)
205 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
|
[clippy] src/aws/mod.rs#L142:
src/aws/mod.rs#L142
warning: this function has too many arguments (20/7)
--> src/aws/mod.rs:142:5
|
142 | / pub async fn deploy(
143 | | ingress_host: String,
144 | | ingress_port: u16,
145 | | ingress_protocol: String,
... |
162 | | acme_email: Option<String>,
163 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#too_many_arguments
|
|
[clippy] src/config.rs#L266:
src/config.rs#L266
warning: called `unwrap` on `endpoint.port` after checking its variant with `is_some`
--> src/config.rs:270:25
|
266 | if ingress.len() > 1 && endpoint.port.is_some() {
| ----------------------- the check is happening here
...
270 | endpoint.port.unwrap()
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: try using `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#unnecessary_unwrap
= note: `#[warn(clippy::unnecessary_unwrap)]` on by default
|
|
[clippy] src/wireguard.rs#L195:
src/wireguard.rs#L195
warning: this function has too many arguments (9/7)
--> src/wireguard.rs:195:5
|
195 | / pub async fn setup(
196 | | origin_keys: WireGuardKeys,
197 | | proxy_public_key: String,
198 | | proxy_endpoint: String,
... |
204 | | download_limit: Option<u32>, // Download limit in Mbps (proxy -> origin)
205 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
|
[clippy] src/aws/mod.rs#L142:
src/aws/mod.rs#L142
warning: this function has too many arguments (20/7)
--> src/aws/mod.rs:142:5
|
142 | / pub async fn deploy(
143 | | ingress_host: String,
144 | | ingress_port: u16,
145 | | ingress_protocol: String,
... |
162 | | acme_email: Option<String>,
163 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#too_many_arguments
|
|
[clippy] src/main.rs#L100:
src/main.rs#L100
warning: called `unwrap` on `upload_limit` after checking its variant with `is_some`
--> src/main.rs:100:48
|
99 | if upload_limit.is_some() {
| ------------------------- help: try: `if let Some(<item>) = upload_limit`
100 | info!(" - Upload limit: {} Mbps", upload_limit.unwrap());
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#unnecessary_unwrap
= note: `#[warn(clippy::unnecessary_unwrap)]` on by default
|
|
[clippy] src/main.rs#L103:
src/main.rs#L103
warning: called `unwrap` on `download_limit` after checking its variant with `is_some`
--> src/main.rs:103:50
|
102 | if download_limit.is_some() {
| --------------------------- help: try: `if let Some(<item>) = download_limit`
103 | info!(" - Download limit: {} Mbps", download_limit.unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#unnecessary_unwrap
|
|
[clippy] src/config.rs#L266:
src/config.rs#L266
warning: called `unwrap` on `endpoint.port` after checking its variant with `is_some`
--> src/config.rs:270:25
|
266 | if ingress.len() > 1 && endpoint.port.is_some() {
| ----------------------- the check is happening here
...
270 | endpoint.port.unwrap()
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: try using `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#unnecessary_unwrap
|
|
[clippy] src/wireguard.rs#L195:
src/wireguard.rs#L195
warning: this function has too many arguments (9/7)
--> src/wireguard.rs:195:5
|
195 | / pub async fn setup(
196 | | origin_keys: WireGuardKeys,
197 | | proxy_public_key: String,
198 | | proxy_endpoint: String,
... |
204 | | download_limit: Option<u32>, // Download limit in Mbps (proxy -> origin)
205 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
|
[clippy] src/aws/mod.rs#L142:
src/aws/mod.rs#L142
warning: this function has too many arguments (20/7)
--> src/aws/mod.rs:142:5
|
142 | / pub async fn deploy(
143 | | ingress_host: String,
144 | | ingress_port: u16,
145 | | ingress_protocol: String,
... |
162 | | acme_email: Option<String>,
163 | | ) -> Result<Self> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#too_many_arguments
|