try to fix this also
- ID
2834bbf- date
2024-06-03 21:03:52+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
6b3e1a3- message
try to fix this also- changed files
1 file, 1 addition, 1 deletion
Changed files
src/main.rs (2181) → src/main.rs (2212)
diff --git a/src/main.rs b/src/main.rs
index 2e9b709..debb1a1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -29,7 +29,7 @@ fn main() {
.get_matches();
// This .unwrap() is safe because "path" is a required param
- let base_colour = matches.value_of("COLOUR").unwrap();
+ let base_colour = matches.get_one::<String>("COLOUR").expect("`COLOUR` is required");
let rgb = match Srgb::from_str(base_colour) {
Ok(c) => c.into_format::<u8>(),