^^^^^^^^^^^^ expected str, found struct std::path::Path
= note: expected type `&str`
found type `&std::path::Path`
error[E0599]: no method named display found for type &str in the current scope
--> src/fitswriter.rs:143:58
|
143 | println!("FITS write > File name > {}", filename.display());
| ^^^^^^^
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0308, E0599.
For more information about an error, try rustc --explain E0308.
error: Could not compile xisfits.
std::path::Path
error[E0599]: no method named
display
found for type&str
in the current scope --> src/fitswriter.rs:143:58 | 143 | println!("FITS write > File name > {}", filename.display()); | ^^^^^^^error: aborting due to 2 previous errors
Some errors have detailed explanations: E0308, E0599. For more information about an error, try
rustc --explain E0308
. error: Could not compilexisfits
.