MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / module_name_for

Function module_name_for

build.rs:51–60  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

49 .strip_prefix("--fs-")
50 .and_then(|line| line.split_once(':'))
51 else {
52 continue;
53 };
54 let value = value.trim().trim_end_matches(';');
55 assert!(
56 value.len() == 7 && value.starts_with('#'),
57 "shared theme color `{name}` must be #rrggbb"
58 );
59 let rgb = u32::from_str_radix(&value[1..], 16)
60 .unwrap_or_else(|_| panic!("shared theme color `{name}` is not hexadecimal"));
61 let constant = name.replace('-', "_").to_ascii_uppercase();
62 writeln!(
63 code,

Callers 1

mainFunction · 0.85

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected