Skip to content

Commit 2fb2416

Browse files
authored
docs: Rust 1.91 (#5320)
1 parent 1e1fe57 commit 2fb2416

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

relay-cabi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
//! ```
5252
//!
5353
//! If your machine already has `cbindgen` installed, check the header of
54-
//! [`include/relay.h`] for the minimum version required. This can be verified by
54+
//! `include/relay.h` for the minimum version required. This can be verified by
5555
//! running `cbindgen --version`. It is generally advisable to keep `cbindgen`
5656
//! updated to its latest version, and always check in cbindgen updates separate
5757
//! from changes to the public interface.

relay-sampling/src/redis_sampling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl ReservoirRuleKey {
1818

1919
/// Increments the reservoir count for a given rule in redis.
2020
///
21-
/// - INCR docs: [`https://redis.io/commands/incr/`]
21+
/// - INCR docs: <https://redis.io/commands/incr/>.
2222
/// - If the counter doesn't exist in redis, a new one will be inserted.
2323
pub async fn increment_redis_reservoir_count(
2424
connection: &mut AsyncRedisConnection,

relay-server/src/extractors/forwarded_for.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use axum::http::request::Parts;
99
pub struct ForwardedFor(String);
1010

1111
impl ForwardedFor {
12-
/// The defacto standard header for identifying the originating IP address of a client, [`X-Forwarded-For`].
12+
/// The defacto standard header for identifying the originating IP address of a client, `X-Forwarded-For`.
1313
///
1414
/// [`X-Forwarded-For`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)
1515
const FORWARDED_HEADER: &'static str = "X-Forwarded-For";
@@ -20,11 +20,11 @@ impl ForwardedFor {
2020
///
2121
/// The Sentry SaaS infrastructure sets this header.
2222
const SENTRY_FORWARDED_HEADER: &'static str = "X-Sentry-Forwarded-For";
23-
/// Vercel forwards the client ip in its own [`X-Vercel-Forwarded-For`] header.
23+
/// Vercel forwards the client ip in its own `X-Vercel-Forwarded-For` header.
2424
///
2525
/// [`X-Vercel-Forwarded-For`](https://vercel.com/docs/concepts/edge-network/headers#x-vercel-forwarded-for)
2626
const VERCEL_FORWARDED_HEADER: &'static str = "X-Vercel-Forwarded-For";
27-
/// Cloudflare forwards the client ip in its own [`CF-Connecting-IP`] header.
27+
/// Cloudflare forwards the client ip in its own `CF-Connecting-IP` header.
2828
///
2929
/// [`CF-Connecting-IP`](https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-connecting-ip)
3030
const CLOUDFLARE_FORWARDED_HEADER: &'static str = "CF-Connecting-IP";

relay-server/src/utils/param_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn get_indexes(full_string: &str) -> Result<Vec<&str>, ()> {
8484
Ok(ret_vals)
8585
}
8686

87-
/// Extracts indexes from a param of the form 'sentry[XXX][...]'
87+
/// Extracts indexes from a param of the form `sentry[XXX][...]`.
8888
pub fn get_sentry_entry_indexes(param_name: &str) -> Option<Vec<&str>> {
8989
if param_name.starts_with("sentry[") {
9090
get_indexes(param_name).ok()

relay/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ relay-kafka = { workspace = true, optional = true }
3232
uuid = { workspace = true }
3333
reqwest = { workspace = true, features = ["gzip", "native-tls-vendored"] }
3434
mimalloc = { workspace = true, features = ["v3", "override", "debug_in_debug"] }
35-

relay/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//! - [`relay-cogs`]: Break down the cost of Relay by its features.
3939
//! - [`relay-common`]: Common utilities and crate re-exports.
4040
//! - [`relay-config`]: Static configuration for the CLI and server.
41-
//! - [`relay-conventions`]: Attribute definitions extracted from [`sentry-conventions`](https://github.com/getsentry/sentry-conventions).
41+
//! - `relay-conventions`: Attribute definitions extracted from [`sentry-conventions`](https://github.com/getsentry/sentry-conventions).
4242
//! - [`relay-crash`]: Crash reporting for the Relay server.
4343
//! - [`relay-dynamic-config`]: Dynamic configuration passed from Sentry.
4444
//! - [`relay-event-derive`]: Derive for visitor traits on the Event schema.
@@ -64,7 +64,6 @@
6464
//! - [`relay-statsd`]: High-level StatsD metric client for internal measurements.
6565
//! - [`relay-system`]: Foundational system components for Relay's services.
6666
//! - [`relay-test`]: Helpers for testing the web server and services.
67-
//! - [`relay-threading`]: Threading code that is used by Relay.
6867
//! - [`relay-ua`]: User agent parser with built-in rules.
6968
//!
7069
//! # Tools

0 commit comments

Comments
 (0)