From e3fc97be2b90add55bbe48362cba902c6a0675be Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 23 Apr 2024 22:16:29 +0200 Subject: [PATCH] Inline `EscapeDebug::size_hint`. --- library/core/src/char/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/char/mod.rs b/library/core/src/char/mod.rs index a860c7c6aaadc..bf9f633eef370 100644 --- a/library/core/src/char/mod.rs +++ b/library/core/src/char/mod.rs @@ -339,6 +339,7 @@ impl Iterator for EscapeDebug { } } + #[inline] fn size_hint(&self) -> (usize, Option) { let n = self.len(); (n, Some(n))