vrruiz / xisfits

Convert images from XISF to FITS
MIT License
8 stars 0 forks source link

str mismatches #14

Closed vrruiz closed 4 years ago

vrruiz commented 4 years ago
error[E0308]: mismatched types --> src/main.rs:163:41 163 fitswriter::fits_write_data(CLI.output(), &fits_hd)?; ^^^^^^^^^^^^ 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.