Skip to content

Fix directory creation issue on macOS #334

Fix directory creation issue on macOS

Fix directory creation issue on macOS #334

Triggered via pull request November 6, 2023 03:23
Status Failure
Total duration 2m 18s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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.