-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
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
Fix compiling #51
Fix compiling #51
Conversation
- I made some mistakes while checking my two previous PRs(Seems like I don't understand Rust that great after all). - Do the url encoding only on the password part, not only the whole URL. - Fix `temporary value dropped while borrowed` compile error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix. The patch is mostly okay, can be merged after the suggested changes are applied
log::info!("{}", format!("Loading config file from {}", absolute_path)); | ||
s.merge(File::with_name(absolute_path))?; | ||
let absolute_path = Path::new(&path).canonicalize().unwrap(); | ||
log::info!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format!
is redundant here, log::info!
macro is capable of formatting, just like format!
and print!
let absolute_path = fs::canonicalize(CURRENT_DIR).unwrap().to_str().unwrap(); | ||
log::info!("{}", format!("Loading config file from {}", absolute_path)); | ||
let absolute_path = fs::canonicalize(CURRENT_DIR).unwrap(); | ||
log::info!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant format!
, please see above comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks!
temporary value dropped while borrowed
compile error.