tty: Fix import sorting
Browse files at this commitd39f7bebf35a3d05f8b0b5eef524549ce6d774d5Parent: 0dd9a421 changed file +11 -11
- src/backend/tty.rs +11 -11
src/backend/tty.rsmodified+11 -11
| @@ -12,38 +12,38 @@ use smithay::backend::allocator::dmabuf::Dmabuf; | |||
| 12 | use smithay::backend::allocator::gbm::{GbmAllocator, GbmBufferFlags, GbmDevice}; | 12 | use smithay::backend::allocator::gbm::{GbmAllocator, GbmBufferFlags, GbmDevice}; |
| 13 | use smithay::backend::allocator::{Format as DrmFormat, Fourcc}; | 13 | use smithay::backend::allocator::{Format as DrmFormat, Fourcc}; |
| 14 | use smithay::backend::drm::compositor::{DrmCompositor, PrimaryPlaneElement}; | 14 | use smithay::backend::drm::compositor::{DrmCompositor, PrimaryPlaneElement}; |
| 15 | -use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime, DrmEventMetadata}; | 15 | +use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventMetadata, DrmEventTime}; |
| 16 | use smithay::backend::egl::context::ContextPriority; | 16 | use smithay::backend::egl::context::ContextPriority; |
| 17 | use smithay::backend::egl::{EGLContext, EGLDisplay}; | 17 | use smithay::backend::egl::{EGLContext, EGLDisplay}; |
| 18 | use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface}; | 18 | use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface}; |
| 19 | -use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture, Capability}; | 19 | +use smithay::backend::renderer::gles::{Capability, GlesRenderer, GlesTexture}; |
| 20 | use smithay::backend::renderer::{Bind, DebugFlags, ImportDma, ImportEgl}; | 20 | use smithay::backend::renderer::{Bind, DebugFlags, ImportDma, ImportEgl}; |
| 21 | use smithay::backend::session::libseat::LibSeatSession; | 21 | use smithay::backend::session::libseat::LibSeatSession; |
| 22 | use smithay::backend::session::{Event as SessionEvent, Session}; | 22 | use smithay::backend::session::{Event as SessionEvent, Session}; |
| 23 | use smithay::backend::udev::{self, UdevBackend, UdevEvent}; | 23 | use smithay::backend::udev::{self, UdevBackend, UdevEvent}; |
| 24 | use smithay::desktop::utils::OutputPresentationFeedback; | 24 | use smithay::desktop::utils::OutputPresentationFeedback; |
| 25 | -use smithay::output::{Mode, Output, OutputModeSource, PhysicalProperties, Subpixel, Scale}; | 25 | +use smithay::output::{Mode, Output, OutputModeSource, PhysicalProperties, Scale, Subpixel}; |
| 26 | -use smithay::reexports::calloop::timer::{Timer, TimeoutAction}; | 26 | +use smithay::reexports::calloop::timer::{TimeoutAction, Timer}; |
| 27 | use smithay::reexports::calloop::{Dispatcher, LoopHandle, RegistrationToken}; | 27 | use smithay::reexports::calloop::{Dispatcher, LoopHandle, RegistrationToken}; |
| 28 | use smithay::reexports::drm::control::{ | 28 | use smithay::reexports::drm::control::{ |
| 29 | - connector, crtc, Mode as DrmMode, ModeFlags, ModeTypeFlags, Device, property, | 29 | + connector, crtc, property, Device, Mode as DrmMode, ModeFlags, ModeTypeFlags, |
| 30 | }; | 30 | }; |
| 31 | use smithay::reexports::input::Libinput; | 31 | use smithay::reexports::input::Libinput; |
| 32 | use smithay::reexports::rustix::fs::OFlags; | 32 | use smithay::reexports::rustix::fs::OFlags; |
| 33 | -use smithay::reexports::wayland_protocols::wp::linux_dmabuf::zv1::server::zwp_linux_dmabuf_feedback_v1::TrancheFlags; | 33 | +use smithay::reexports::wayland_protocols; |
| 34 | -use smithay::reexports::wayland_protocols::wp::presentation_time::server::wp_presentation_feedback; | ||
| 35 | use smithay::utils::DeviceFd; | 34 | use smithay::utils::DeviceFd; |
| 36 | -use smithay::wayland::dmabuf::{DmabufFeedbackBuilder, DmabufGlobal, DmabufFeedback}; | 35 | +use smithay::wayland::dmabuf::{DmabufFeedback, DmabufFeedbackBuilder, DmabufGlobal}; |
| 37 | use smithay_drm_extras::drm_scanner::{DrmScanEvent, DrmScanner}; | 36 | use smithay_drm_extras::drm_scanner::{DrmScanEvent, DrmScanner}; |
| 38 | use smithay_drm_extras::edid::EdidInfo; | 37 | use smithay_drm_extras::edid::EdidInfo; |
| 38 | +use wayland_protocols::wp::linux_dmabuf::zv1::server::zwp_linux_dmabuf_feedback_v1::TrancheFlags; | ||
| 39 | +use wayland_protocols::wp::presentation_time::server::wp_presentation_feedback; | ||
| 39 | 40 | ||
| 41 | +use super::RenderResult; | ||
| 40 | use crate::config::Config; | 42 | use crate::config::Config; |
| 41 | -use crate::niri::{OutputRenderElements, State, RedrawState}; | 43 | +use crate::niri::{OutputRenderElements, RedrawState, State}; |
| 42 | use crate::utils::get_monotonic_time; | 44 | use crate::utils::get_monotonic_time; |
| 43 | use crate::Niri; | 45 | use crate::Niri; |
| 44 | 46 | ||
| 45 | -use super::RenderResult; | ||
| 46 | - | ||
| 47 | const SUPPORTED_COLOR_FORMATS: &[Fourcc] = &[Fourcc::Argb8888, Fourcc::Abgr8888]; | 47 | const SUPPORTED_COLOR_FORMATS: &[Fourcc] = &[Fourcc::Argb8888, Fourcc::Abgr8888]; |
| 48 | 48 | ||
| 49 | pub struct Tty { | 49 | pub struct Tty { |