We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b25611f commit c5e50f0Copy full SHA for c5e50f0
src/util.rs
@@ -3,8 +3,8 @@ use std::fmt;
3
4
pub fn basic_auth<U, P>(username: U, password: Option<P>) -> HeaderValue
5
where
6
- U: std::fmt::Display,
7
- P: std::fmt::Display,
+ U: fmt::Display,
+ P: fmt::Display,
8
{
9
use base64::prelude::BASE64_STANDARD;
10
use base64::write::EncoderWriter;
@@ -107,7 +107,7 @@ impl fmt::Debug for Escape<'_> {
107
impl fmt::Display for Escape<'_> {
108
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
109
for &c in self.0 {
110
- // https://doc.rust-lang.org/reference.html#byte-escapes
+ // https://doc.rust-lang.org/reference/tokens.html#byte-escapes
111
if c == b'\n' {
112
write!(f, "\\n")?;
113
} else if c == b'\r' {
0 commit comments