mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Format code
This commit is contained in:
parent
56411c6547
commit
fc6511a361
13 changed files with 42 additions and 48 deletions
|
|
@ -77,7 +77,7 @@ fn version() -> String {
|
|||
let build_date = env!("BUILD_DATE");
|
||||
|
||||
if git_commit_hash.is_empty() {
|
||||
format!("{}", package_version)
|
||||
package_version.to_string()
|
||||
} else {
|
||||
format!("{} ({} {})", package_version, git_commit_hash, build_date)
|
||||
}
|
||||
|
|
@ -250,7 +250,7 @@ async fn crunchyroll_session(cli: &mut Cli) -> Result<Crunchyroll> {
|
|||
"Via `--lang` specified language is not supported. Supported languages: {}",
|
||||
supported_langs
|
||||
.iter()
|
||||
.map(|l| format!("`{}` ({})", l.to_string(), l.to_human_readable()))
|
||||
.map(|l| format!("`{}` ({})", l, l.to_human_readable()))
|
||||
.collect::<Vec<String>>()
|
||||
.join(", ")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue