We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xdiff/xdiff/src/main.rs
Line 102 in 1cccac4
async fn run(output: &mut Vec<String>, args: RunArgs) -> Result<()> { let config_file = args.config.unwrap_or(get_default_config("xdiff.yml")?); let diff_config = DiffConfig::try_load(&config_file).await?;
当没有默认配置文件时,get_default_config("xdiff.yml")? 会直接返回错误。
get_default_config("xdiff.yml")?
我理解这里的逻辑应该是:
这里可能需要用 unwrap_or_else 而不是 unwrap_or。
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
xdiff/xdiff/src/main.rs
Line 102 in 1cccac4
当没有默认配置文件时,
get_default_config("xdiff.yml")?
会直接返回错误。我理解这里的逻辑应该是:
这里可能需要用 unwrap_or_else 而不是 unwrap_or。
The text was updated successfully, but these errors were encountered: