fix: Builds failing due to new Rust version

This commit is contained in:
Gerald Pinder 2024-07-26 15:44:29 -04:00
parent 7481ac1825
commit e36bb74231
4 changed files with 13 additions and 15 deletions

View file

@ -85,7 +85,7 @@ impl Logger {
///
/// # Panics
/// Will panic if logging is unable to be initialized.
pub fn init(&mut self) {
pub fn init(&self) {
let home = env::var("HOME").expect("$HOME should be defined");
let log_dir = self.log_dir.as_ref().map_or_else(
|| Path::new(home.as_str()).join(".local/share/bluebuild"),