Skip to content

Commit c5e50f0

Browse files
authored
docs: update outdated link in comments
1 parent b25611f commit c5e50f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::fmt;
33

44
pub fn basic_auth<U, P>(username: U, password: Option<P>) -> HeaderValue
55
where
6-
U: std::fmt::Display,
7-
P: std::fmt::Display,
6+
U: fmt::Display,
7+
P: fmt::Display,
88
{
99
use base64::prelude::BASE64_STANDARD;
1010
use base64::write::EncoderWriter;
@@ -107,7 +107,7 @@ impl fmt::Debug for Escape<'_> {
107107
impl fmt::Display for Escape<'_> {
108108
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
109109
for &c in self.0 {
110-
// https://doc.rust-lang.org/reference.html#byte-escapes
110+
// https://doc.rust-lang.org/reference/tokens.html#byte-escapes
111111
if c == b'\n' {
112112
write!(f, "\\n")?;
113113
} else if c == b'\r' {

0 commit comments

Comments
 (0)