Skip to content

Commit

Permalink
feat: replace regex with upon
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Dec 11, 2023
1 parent 94f4034 commit 88c0ae1
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 310 deletions.
13 changes: 12 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ serde = { version = "1.0.160", features = ["derive"] }
toml = "0.7.3"
directories = "5.0"
resolve-path = "0.1.0"
regex = "1.8.1"
pretty_env_logger = "0.4.0"
log = "0.4.17"
paris-log = { version = "1.0.2", features = ["icons"] }
colorsys = "0.6.7"
prettytable-rs = "0.10.0"
serde_json = "1.0.107"
update-informer = "1.1.0"
upon = "0.8.0"

[workspace]
members = ["material-color-utilities-rs"]
4 changes: 2 additions & 2 deletions src/util/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl SchemeExt for Scheme {
"surface_container_high" => &self.surface_container_high,
"surface_container_highest" => &self.surface_container_highest,
"source_color" => source_color,
_ => panic!(),
_ => panic!("{}", field),
}
}
}
Expand Down Expand Up @@ -182,7 +182,7 @@ impl SchemeAndroidExt for SchemeAndroid {
"text_secondary_on_accent" => &self.text_secondary_on_accent,
"volume_background" => &self.volume_background,
"scrim_android" => &self.scrim,
_ => panic!(),
_ => panic!("{}", field),
}
}
}
Expand Down
Loading

0 comments on commit 88c0ae1

Please sign in to comment.