Skip to content

Commit

Permalink
fix: Wrong console command for adding Function-Call key with any meth…
Browse files Browse the repository at this point in the history
…ods to account (#329)
  • Loading branch information
FroVolod authored May 1, 2024
1 parent ed52e26 commit 918673b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/vec_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ impl std::str::FromStr for VecString {
type Err = color_eyre::eyre::ErrReport;

fn from_str(s: &str) -> Result<Self, Self::Err> {
if s.is_empty() {
return Ok(Self(vec![]));
}
let vec_str: Vec<String> = s.split(',').map(|str| str.trim().to_string()).collect();
Ok(Self(vec_str))
}
Expand Down

0 comments on commit 918673b

Please sign in to comment.