Inline `EscapeDebug::size_hint`. · rust-lang/rust@e3fc97b

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit e3fc97b

committed

Inline EscapeDebug::size_hint.

1 parent c3202af commit e3fc97b

File tree

1 file changed

+

1

-

0

lines changed

1 file changed

+

1

-

0

lines changed

Lines changed: 1 addition & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -339,6 +339,7 @@ impl Iterator for EscapeDebug {

339339

}

340340

}

341341
342+

#[inline]

342343

fn size_hint(&self) -> (usize, Option<usize>) {

343344

let n = self.len();

344345

(n, Some(n))

0 commit comments

Comments

 (0)