Fix directory creation issue on macOS #334
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
2 errors
`if` and `else` have incompatible types:
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/macros.rs#L121
error[E0308]: `if` and `else` have incompatible types
--> fluere-config/src/init.rs:64:17
|
61 | let user_home = if cfg!(target_os = "macos") {
| _____________________________-
62 | | dirs::home_dir().unwrap()
| | ------------------------- expected because of this
63 | | } else {
64 | | format!("/home/{}", user)
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PathBuf`, found `String`
65 | | };
| |_____________- `if` and `else` have incompatible types
|
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
|
build
Process completed with exit code 101.
|