Apply cargo fix

This commit is contained in:
Julian Mutter 2023-11-23 09:35:18 +01:00
parent 5659707132
commit e9b2263276
3 changed files with 8 additions and 21 deletions

View File

@ -1,10 +1,8 @@
use cairo::ImageSurface;
use glib::{timeout_future, timeout_future_seconds, ControlFlow};
use glib::timeout_future;
use gtk::gdk::Texture;
use poppler::{Document, Page};
use poppler::Document;
use std::{
collections::BTreeMap,
path::{Path, PathBuf},
rc::Rc,
time::{Duration, Instant},
};

View File

@ -1,12 +1,8 @@
use std::{rc::Rc, time::Instant};
use std::rc::Rc;
use cairo::{Context, ImageSurface};
use glib::Bytes;
use gtk::{
ffi::GtkImage,
gdk::{ffi::gdk_pixbuf_get_from_surface, Texture},
gdk_pixbuf::Pixbuf,
};
use gtk::gdk::Texture;
use poppler::Page;
pub fn draw_pages_to_texture(pages: &[Rc<Page>], area_height: i32) -> Texture {

View File

@ -2,23 +2,16 @@ use std::{
cell::RefCell,
path::{Path, PathBuf},
rc::Rc,
time::Instant,
};
use async_channel::Sender;
use gtk::{
ffi::{GtkImage, GtkPicture},
gdk::{ffi::gdk_pixbuf_get_from_surface, Texture},
gdk_pixbuf::{ffi::GdkPixbuf, Pixbuf},
glib, Application, ApplicationWindow, Box, Button, DrawingArea, FileChooserAction,
FileChooserDialog, HeaderBar, Image, Label, Orientation, Picture, ResponseType,
glib, Application, ApplicationWindow, Box, Button, FileChooserAction, FileChooserDialog,
HeaderBar, Label, Orientation, Picture, ResponseType,
};
use crate::{
cache::{self, CacheCommand, MyPageType},
draw,
};
use glib::{clone, Bytes};
use crate::cache::{self, CacheCommand};
use glib::clone;
use gtk::prelude::*;
pub struct Ui {