diff --git a/Cargo.lock b/Cargo.lock index 91318f8fd..10b750e60 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1449,7 +1449,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=a557fed94e0f528c281b4bab241eb518b7f756ac#a557fed94e0f528c281b4bab241eb518b7f756ac" +source = "git+https://github.com/storytold/craft-libs?rev=4d2784ec90413e53b8f6c1a1c6b8526b8077e8c5#4d2784ec90413e53b8f6c1a1c6b8526b8077e8c5" dependencies = [ "encoding_rs", "flate2", diff --git a/Cargo.toml b/Cargo.toml index 62c38f6f3..ca4970bc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ craft-dpx = { version = "0.1.0", git = "https://github.com/storytold/craft-libs" craft-ps = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "808730f49b9637b7909fe2ae56f9d63fdb100cae", default-features = false, features = ["read"] } craft-exr = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "5a7a63a21dd03dd1a2bc6c308a3a6ce818caae87" } craft-gif = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "5a7a63a21dd03dd1a2bc6c308a3a6ce818caae87" } -craft-psd = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "a557fed94e0f528c281b4bab241eb518b7f756ac" } +craft-psd = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "4d2784ec90413e53b8f6c1a1c6b8526b8077e8c5" } craft-svg = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "77686f24fe8665c21369f1b593f4d65a973e2a45" } craft-webp = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "5a7a63a21dd03dd1a2bc6c308a3a6ce818caae87" } craft-lottie = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "5a7a63a21dd03dd1a2bc6c308a3a6ce818caae87" } diff --git a/crates/psd/src/tests/vector_records.rs b/crates/psd/src/tests/vector_records.rs index 246596ca4..531650835 100644 --- a/crates/psd/src/tests/vector_records.rs +++ b/crates/psd/src/tests/vector_records.rs @@ -16,7 +16,7 @@ fn length(selector: u16, count: u16) -> Vec { fn knot(selector: u16) -> Vec { let mut data = [0; 24]; // Stored y then x, including negative and outside-document coordinates. - for (chunk, value) in data.chunks_exact_mut(4).zip([-(1i32 << 23), 1 << 22, 1 << 24, -(1 << 24), 1 << 23, 1 << 25]) { + for (chunk, value) in data.as_chunks_mut::<4>().0.iter_mut().zip([-(1i32 << 23), 1 << 22, 1 << 24, -(1 << 24), 1 << 23, 1 << 25]) { chunk.copy_from_slice(&value.to_be_bytes()); } record(selector, data)