Skip to content

Commit ee3923f

Browse files
CopilotByron
andcommitted
Fix formatting issues in date parsing code
Co-authored-by: Byron <63622+Byron@users.noreply.github.com>
1 parent e7ed184 commit ee3923f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

gix-date/src/parse.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,7 @@ pub(crate) mod function {
489489
if let Some(space_pos) = input.rfind(' ') {
490490
if space_pos > 5 {
491491
let potential_offset = input[space_pos + 1..].trim();
492-
if potential_offset.starts_with('+')
493-
|| potential_offset.starts_with('-')
494-
|| potential_offset == "Z"
495-
{
492+
if potential_offset.starts_with('+') || potential_offset.starts_with('-') || potential_offset == "Z" {
496493
return (&input[..space_pos], potential_offset);
497494
}
498495
}
@@ -508,7 +505,7 @@ pub(crate) mod function {
508505
/// Parse time component: HH:MM:SS, HHMMSS, HH:MM, HHMM, or HH
509506
fn parse_time_component(time: &str) -> Option<(u32, u32, u32)> {
510507
let time = time.trim();
511-
508+
512509
// Time components must be ASCII
513510
if !time.is_ascii() {
514511
return None;

0 commit comments

Comments
 (0)