noise-rs icon indicating copy to clipboard operation
noise-rs copied to clipboard

Write to file function unnecesarily prepends supplied path

Open rishflab opened this issue 2 years ago • 0 comments

    #[cfg(feature = "image")]
    pub fn write_to_file(&self, filename: &str) {
        // Create the output directory for the images, if it doesn't already exist
        let target_dir = Path::new("example_images/");

I don't think is required. It reduces the flexibility of the library?

rishflab avatar Apr 02 '22 04:04 rishflab