mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
further cleanup
This commit is contained in:
@@ -113,7 +113,8 @@ impl PrefixRule {
|
||||
if self.matches(example).is_some() {
|
||||
return Err(Error::ExampleDidMatch {
|
||||
rule: format!("{self:?}"),
|
||||
example: join_command(example),
|
||||
example: try_join(example.iter().map(String::as_str))
|
||||
.unwrap_or_else(|_| "unable to render example".to_string()),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -152,8 +153,3 @@ impl Rule {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn join_command(command: &[String]) -> String {
|
||||
try_join(command.iter().map(String::as_str))
|
||||
.unwrap_or_else(|_| "unable to render example".to_string())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user