Skip to content

Commit

Permalink
chore(deps): Update to Rust 1.82.0 (#22030)
Browse files Browse the repository at this point in the history
* chore(deps): Upgrade Rust to 1.82

Signed-off-by: Jesse Szwedko <[email protected]>

* clippy

Signed-off-by: Jesse Szwedko <[email protected]>

* Update tiltfile

Signed-off-by: Jesse Szwedko <[email protected]>

* cargo fmt

Signed-off-by: Jesse Szwedko <[email protected]>

---------

Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko authored Dec 13, 2024
1 parent f8f33b5 commit 7e93489
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ load('ext://helm_resource', 'helm_resource', 'helm_repo')
docker_build(
ref='timberio/vector',
context='.',
build_args={'RUST_VERSION': '1.81.0'},
build_args={'RUST_VERSION': '1.82.0'},
dockerfile='tilt/Dockerfile'
)

Expand Down
15 changes: 7 additions & 8 deletions lib/vector-core/src/tls/incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ use crate::tcp::{self, TcpKeepaliveConfig};

impl TlsSettings {
pub fn acceptor(&self) -> crate::tls::Result<SslAcceptor> {
match self.identity {
None => Err(TlsError::MissingRequiredIdentity),
Some(_) => {
let mut acceptor = SslAcceptor::mozilla_intermediate(SslMethod::tls())
.context(CreateAcceptorSnafu)?;
self.apply_context_base(&mut acceptor, true)?;
Ok(acceptor.build())
}
if self.identity.is_none() {
Err(TlsError::MissingRequiredIdentity)
} else {
let mut acceptor =
SslAcceptor::mozilla_intermediate(SslMethod::tls()).context(CreateAcceptorSnafu)?;
self.apply_context_base(&mut acceptor, true)?;
Ok(acceptor.build())
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.81"
channel = "1.82"
profile = "default"

0 comments on commit 7e93489

Please sign in to comment.