Skip to content

Commit a55e344

Browse files
committed
Make cargo fmt happy
Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com>
1 parent 673f31a commit a55e344

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/apis/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ fn hex_digit(b: u8) -> Option<u8> {
7676
}
7777

7878
fn parse_percent_encoded(bytes: &[u8; 3]) -> Option<u8> {
79-
if bytes[0] != b'%' { return None; }
79+
if bytes[0] != b'%' {
80+
return None;
81+
}
8082
let hi = hex_digit(bytes[1])?;
8183
let lo = hex_digit(bytes[2])?;
8284
Some((hi << 4) | lo)

templates/reqwest-trait/api_mod.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ fn hex_digit(b: u8) -> Option<u8> {
105105
}
106106

107107
fn parse_percent_encoded(bytes: &[u8; 3]) -> Option<u8> {
108-
if bytes[0] != b'%' { return None; }
108+
if bytes[0] != b'%' {
109+
return None;
110+
}
109111
let hi = hex_digit(bytes[1])?;
110112
let lo = hex_digit(bytes[2])?;
111113
Some((hi << 4) | lo)

templates/reqwest/api_mod.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ fn hex_digit(b: u8) -> Option<u8> {
128128
}
129129

130130
fn parse_percent_encoded(bytes: &[u8; 3]) -> Option<u8> {
131-
if bytes[0] != b'%' { return None; }
131+
if bytes[0] != b'%' {
132+
return None;
133+
}
132134
let hi = hex_digit(bytes[1])?;
133135
let lo = hex_digit(bytes[2])?;
134136
Some((hi << 4) | lo)

0 commit comments

Comments
 (0)