From eb872cd95caa4db5e6580e8a043abd0a651dfb93 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 00:46:44 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/iter.rs | 5 +++-- src/lib.rs | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/iter.rs b/src/iter.rs index 73cc888..9394218 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -5,8 +5,9 @@ pub trait CapitalizeIter: Iterator { impl> CapitalizeIter for T { #[inline] - fn capitalize(&mut self) -> impl Iterator { - self.next().into_iter() + fn capitalize(&mut self) -> impl Iterator { + self.next() + .into_iter() .flat_map(char::to_uppercase) .chain(self.flat_map(char::to_lowercase)) } diff --git a/src/lib.rs b/src/lib.rs index 246a00f..e0875cf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -103,7 +103,9 @@ impl> Capitalize for T { .intersperse(" ") .map(|item| { let mut chars = item.chars(); - chars.next().into_iter() + chars + .next() + .into_iter() .flat_map(char::to_uppercase) .chain(chars.flat_map(char::to_lowercase)) })