Skip to content

Commit

Permalink
fix(ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuu committed Jul 27, 2024
1 parent e194723 commit 26cfa65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/gesture.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::*;

use ::zip::{write::FileOptions, CompressionMethod, ZipArchive, ZipWriter};
use ::zip::{write::SimpleFileOptions, CompressionMethod, ZipArchive, ZipWriter};
use eyre::OptionExt;
use guessture::{find_matching_template_with_defaults, Path2D, Template};
use std::{
Expand Down Expand Up @@ -86,7 +86,7 @@ impl Gesture {
pub fn save(&self) -> eyre::Result<()> {
let mut file = File::create(self.zip_path.as_str())?;
let mut zip = ZipWriter::new(&mut file);
let options = FileOptions::default()
let options = SimpleFileOptions::default()
.compression_method(CompressionMethod::Deflated)
.compression_level(Some(9));

Expand Down
4 changes: 2 additions & 2 deletions src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ impl Frame {
ImageType::Jpeg => FrameFmt::Jpeg,
ImageType::Png => FrameFmt::Png,

ImageType::Avif => FrameFmt::Avif,
ImageType::Heif => FrameFmt::Heic,
ImageType::Heif(imagesize::Compression::Avif) => FrameFmt::Avif,
ImageType::Heif(imagesize::Compression::Hevc) => FrameFmt::Heic,
// TODO:
// ImageType::Heif { Hevc }=> FrameFmt::Heic,
// ImageType::Heif { Av1 }=> FrameFmt::Avif,
Expand Down

0 comments on commit 26cfa65

Please sign in to comment.