Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Mar 3, 2024
1 parent a14d816 commit 1db928d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,8 @@ impl Snapshot {
.split('.')
.next()
.unwrap_or("")
.splitn(2, "__")
.nth(1)
.map(|x| x.to_string());
.split_once("__")
.map(|x| x.1.to_string());

Ok(Snapshot::from_components(
module_name,
Expand Down

0 comments on commit 1db928d

Please sign in to comment.