1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Fix a reference in a doc comment

This commit is contained in:
Quentin Gliech
2024-07-05 09:56:37 +02:00
parent 2336b1b1c6
commit b6c11b5a21

View File

@@ -22,8 +22,8 @@ use tracing_opentelemetry::OpenTelemetrySpanExt;
pub struct HeaderInjector<'a>(pub &'a mut http::HeaderMap);
impl<'a> Injector for HeaderInjector<'a> {
/// Set a key and value in the [`HeaderMap`]. Does nothing if the key or
/// value are not valid inputs.
/// Set a key and value in the [`http::HeaderMap`]. Does nothing if the key
/// or value are not valid inputs.
fn set(&mut self, key: &str, value: String) {
if let Ok(name) = http::header::HeaderName::from_bytes(key.as_bytes()) {
if let Ok(val) = http::header::HeaderValue::from_str(&value) {