MCPcopy Create free account
hub / github.com/FastLED/FastLED / typo_include_suggestion

Function typo_include_suggestion

ci/lint_cpp_rs/src/lib.rs:2472–2476  ·  view source on GitHub ↗
(include_path: &str)

Source from the content-addressed store, hash-verified

2470}
2471
2472fn typo_include_suggestion(include_path: &str) -> Option<&'static str> {
2473 TYPO_INCLUDE_PREFIXES
2474 .iter()
2475 .find_map(|(typo, correct)| include_path.starts_with(typo).then_some(*correct))
2476}
2477
2478fn standard_attribute_replacement(attribute: &str) -> Option<&'static str> {
2479 ATTRIBUTE_MAPPINGS

Callers 1

check_file_contentMethod · 0.85

Calls 1

starts_withMethod · 0.45

Tested by

no test coverage detected