Skip to content

Commit

Permalink
fix rust format
Browse files Browse the repository at this point in the history
Signed-off-by: GoHalo <[email protected]>
  • Loading branch information
gohalo committed Sep 27, 2024
1 parent fb6ff8e commit 6db9499
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/core/src/file_group/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,8 @@ impl BaseFile {
.rsplit_once('.')
.ok_or(Internal(err_msg.clone()))?;
let parts: Vec<&str> = name.split('_').collect();
let file_group_id = parts
.first()
.ok_or(Internal(err_msg.clone()))?
.to_string();
let commit_time = parts
.get(2)
.ok_or(Internal(err_msg.clone()))?
.to_string();
let file_group_id = parts.first().ok_or(Internal(err_msg.clone()))?.to_string();
let commit_time = parts.get(2).ok_or(Internal(err_msg.clone()))?.to_string();
Ok((file_group_id, commit_time))
}

Expand Down

0 comments on commit 6db9499

Please sign in to comment.