mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-26 01:58:11 +08:00
Upgrade to the Rust 2024 edition (#2367)
* Update to rust 2024 edition * Fixes * Clean up imports * Cargo fmt again --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
927d7dd9b2
commit
beb1c6ae64
@@ -1,15 +1,14 @@
|
||||
// Only compile this file if the feature "rawkit-tests" is enabled
|
||||
#![cfg(feature = "rawkit-tests")]
|
||||
|
||||
use rawkit::RawImage;
|
||||
|
||||
use image::codecs::png::{CompressionType, FilterType, PngEncoder};
|
||||
use image::{ColorType, ImageEncoder};
|
||||
use libraw::Processor;
|
||||
use rawkit::RawImage;
|
||||
use rayon::prelude::*;
|
||||
use std::collections::HashMap;
|
||||
use std::fmt::Write;
|
||||
use std::fs::{create_dir, metadata, read_dir, File};
|
||||
use std::fs::{File, create_dir, metadata, read_dir};
|
||||
use std::io::{BufWriter, Cursor, Read};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
@@ -338,10 +337,10 @@ fn extract_data_from_dng_images() {
|
||||
}
|
||||
|
||||
fn extract_data_from_dng_image(path: &Path) {
|
||||
use rawkit::tiff::Ifd;
|
||||
use rawkit::tiff::file::TiffRead;
|
||||
use rawkit::tiff::tags::{ColorMatrix2, Make, Model};
|
||||
use rawkit::tiff::values::ToFloat;
|
||||
use rawkit::tiff::Ifd;
|
||||
use std::io::{BufReader, Write};
|
||||
|
||||
let reader = BufReader::new(File::open(path).unwrap());
|
||||
|
||||
Reference in New Issue
Block a user