mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
making things more functional
This commit is contained in:
@@ -92,8 +92,7 @@ fn parse_pattern<'v>(pattern: UnpackList<Value<'v>>) -> Result<Vec<PatternToken>
|
||||
fn parse_pattern_token<'v>(value: Value<'v>) -> Result<PatternToken> {
|
||||
if let Some(s) = value.unpack_str() {
|
||||
Ok(PatternToken::Single(s.to_string()))
|
||||
}
|
||||
else if let Some(list) = ListRef::from_value(value) {
|
||||
} else if let Some(list) = ListRef::from_value(value) {
|
||||
let tokens: Vec<String> = list
|
||||
.content()
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user