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

chore(toolchain): Migrate to 2021 edition #1510

Merged
merged 3 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion relay-auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Authentication and crypto for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion relay-aws-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "AWS extension implementation for Sentry's AWS Lambda layer"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-cabi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Sentry <[email protected]>"]
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
description = "Exposes some internals of the relay to C."
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Common utilities and crate re-exports for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-common/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ macro_rules! clone {
$( let $n = $n.clone(); )+
move || $body
}};
($($n:ident ,)+ |$($p:pat),+| $body:expr) => {{
($($n:ident ,)+ |$($p:pat_param),+| $body:expr) => {{
$( let $n = $n.clone(); )+
move |$($p),+| $body
}};
Expand Down
2 changes: 1 addition & 1 deletion relay-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Configuration for the Relay CLI and server"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-crash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Native crash reporting for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
build = "build.rs"
license-file = "../LICENSE"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion relay-ffi-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Macros for error handling in FFI bindings"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Utilities for error handling in FFI bindings"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-filter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Inbound data filters for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-general/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "22.9.0"
authors = ["Sentry <[email protected]>"]
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-general/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "22.9.0"
authors = ["Sentry <[email protected]>"]
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion relay-log/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Error reporting and logging for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion relay-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Metrics protocol and processing"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-profiling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Profiling processing for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-quotas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Sentry quotas and rate limiting"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Pooled Redis and Redis cluster abstraction for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-replays/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Replays functionality for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-sampling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Dynamic sampling functionality for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Endpoints and services for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
build = "build.rs"
license-file = "../LICENSE"
publish = false
Expand Down
6 changes: 3 additions & 3 deletions relay-server/src/extractors/forwarded_for.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use actix_web::http::header;
use actix_web::http::header::{self, IntoHeaderValue};
use actix_web::{Error, FromRequest, HttpMessage, HttpRequest};

#[derive(Debug)]
Expand Down Expand Up @@ -49,15 +49,15 @@ impl<'a> header::IntoHeaderValue for &'a ForwardedFor {
type Error = header::InvalidHeaderValue;

fn try_into(self) -> Result<header::HeaderValue, Self::Error> {
(self.0.as_str()).try_into()
IntoHeaderValue::try_into(self.0.as_str())
}
}

impl header::IntoHeaderValue for ForwardedFor {
type Error = header::InvalidHeaderValueBytes;

fn try_into(self) -> Result<header::HeaderValue, Self::Error> {
self.0.try_into()
IntoHeaderValue::try_into(self.0)
}
}

Expand Down
2 changes: 1 addition & 1 deletion relay-statsd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "High-level StatsD metric client for internal measurements"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-system/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Foundational system components for Relay's services"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Test utilities for Relay"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
license-file = "../LICENSE"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "The Relay binary, a proxy server for Sentry"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "22.9.0"
edition = "2018"
edition = "2021"
build = "build.rs"
license-file = "../LICENSE"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tools/document-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Sentry <[email protected]>"]
description = "Generates documentation for metrics"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tools/generate-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Sentry <[email protected]>"]
description = "Generates an event payload schema file"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tools/process-event/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Sentry <[email protected]>"]
description = "Process a Sentry event payload"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
edition = "2018"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion tools/scrub-minidump/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Scrubs PII from a Minidump file"
homepage = "https://getsentry.github.io/relay/"
repository = "https://github.com/getsentry/relay"
version = "20.8.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down