mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-20 04:27:21 +03:00
postpone clone after found (#1656)
This commit is contained in:
parent
a19a6ca01e
commit
7083b98a38
@ -445,8 +445,8 @@ fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
} else {
|
||||
MappableCommand::STATIC_COMMAND_LIST
|
||||
.iter()
|
||||
.cloned()
|
||||
.find(|cmd| cmd.name() == s)
|
||||
.cloned()
|
||||
.ok_or_else(|| anyhow!("No command named '{}'", s))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user