Fixed single character patterns using double quotes

This commit is contained in:
Riley-Kilgore
2024-09-24 08:32:41 -07:00
committed by Lucas
parent 9a29f4e876
commit 7c6f3278ba
3 changed files with 8 additions and 8 deletions

View File

@@ -964,12 +964,12 @@ impl<'a, 'b> ExprTyper<'a, 'b> {
let has_validator = info
.values
.keys()
.any(|k| k.split(".").next() == Some(name));
.any(|k| k.split('.').next() == Some(name));
let value_constructors = info
.values
.keys()
.map(|k| k.split(".").next().unwrap_or(k).to_string())
.map(|k| k.split('.').next().unwrap_or(k).to_string())
.collect::<Vec<_>>();
return Some(