Compare commits

...

3 Commits

Author SHA1 Message Date
d5f1f2c925 cargo clippy
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-09-02 15:58:16 +02:00
4ce1988e4c Forbid cargo clippy warnings
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-02 15:55:42 +02:00
edb88bb8c8 Merge pull request 'Configure renovate' (#3) from renovate/configure into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3
2022-09-02 13:46:02 +00:00
3 changed files with 3 additions and 5 deletions

View File

@@ -8,6 +8,6 @@ steps:
image: rust image: rust
commands: commands:
- rustup component add clippy - rustup component add clippy
- cargo clippy - cargo clippy -- -D warnings
- cargo test - cargo test

View File

@@ -108,9 +108,7 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for RelayWS {
Ok(ws::Message::Text(text)) => ctx.text(text), Ok(ws::Message::Text(text)) => ctx.text(text),
Ok(ws::Message::Close(_reason)) => ctx.stop(), Ok(ws::Message::Close(_reason)) => ctx.stop(),
Ok(ws::Message::Binary(data)) => { Ok(ws::Message::Binary(data)) => {
if let Err(e) = if let Err(e) = futures::executor::block_on(self.tcp_write.write_all(&data)) {
futures::executor::block_on(self.tcp_write.write_all(&data.to_vec()))
{
log::error!("Failed to forward some data, closing connection! {:?}", e); log::error!("Failed to forward some data, closing connection! {:?}", e);
ctx.stop(); ctx.stop();
} }

View File

@@ -1,9 +1,9 @@
use std::sync::Arc; use std::sync::Arc;
use std::time::SystemTime; use std::time::SystemTime;
use rustls::{Certificate, DistinguishedNames, Error, RootCertStore};
use rustls::internal::msgs::enums::AlertDescription; use rustls::internal::msgs::enums::AlertDescription;
use rustls::server::{AllowAnyAuthenticatedClient, ClientCertVerified, ClientCertVerifier}; use rustls::server::{AllowAnyAuthenticatedClient, ClientCertVerified, ClientCertVerifier};
use rustls::{Certificate, DistinguishedNames, Error, RootCertStore};
use x509_parser::prelude::{CertificateRevocationList, FromDer, X509Certificate}; use x509_parser::prelude::{CertificateRevocationList, FromDer, X509Certificate};
use crate::base::cert_utils::parse_pem_certificates; use crate::base::cert_utils::parse_pem_certificates;