From d39f7bebf35a3d05f8b0b5eef524549ce6d774d5 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 1 Jan 2024 09:40:41 +0400 Subject: tty: Fix import sorting One of the imports was too long so rustfmt bailed. --- src/backend/tty.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/backend/tty.rs b/src/backend/tty.rs index ec45aeff..63c4c17b 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -12,38 +12,38 @@ use smithay::backend::allocator::dmabuf::Dmabuf; use smithay::backend::allocator::gbm::{GbmAllocator, GbmBufferFlags, GbmDevice}; use smithay::backend::allocator::{Format as DrmFormat, Fourcc}; use smithay::backend::drm::compositor::{DrmCompositor, PrimaryPlaneElement}; -use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime, DrmEventMetadata}; +use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventMetadata, DrmEventTime}; use smithay::backend::egl::context::ContextPriority; use smithay::backend::egl::{EGLContext, EGLDisplay}; use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface}; -use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture, Capability}; +use smithay::backend::renderer::gles::{Capability, GlesRenderer, GlesTexture}; use smithay::backend::renderer::{Bind, DebugFlags, ImportDma, ImportEgl}; use smithay::backend::session::libseat::LibSeatSession; use smithay::backend::session::{Event as SessionEvent, Session}; use smithay::backend::udev::{self, UdevBackend, UdevEvent}; use smithay::desktop::utils::OutputPresentationFeedback; -use smithay::output::{Mode, Output, OutputModeSource, PhysicalProperties, Subpixel, Scale}; -use smithay::reexports::calloop::timer::{Timer, TimeoutAction}; +use smithay::output::{Mode, Output, OutputModeSource, PhysicalProperties, Scale, Subpixel}; +use smithay::reexports::calloop::timer::{TimeoutAction, Timer}; use smithay::reexports::calloop::{Dispatcher, LoopHandle, RegistrationToken}; use smithay::reexports::drm::control::{ - connector, crtc, Mode as DrmMode, ModeFlags, ModeTypeFlags, Device, property, + connector, crtc, property, Device, Mode as DrmMode, ModeFlags, ModeTypeFlags, }; use smithay::reexports::input::Libinput; use smithay::reexports::rustix::fs::OFlags; -use smithay::reexports::wayland_protocols::wp::linux_dmabuf::zv1::server::zwp_linux_dmabuf_feedback_v1::TrancheFlags; -use smithay::reexports::wayland_protocols::wp::presentation_time::server::wp_presentation_feedback; +use smithay::reexports::wayland_protocols; use smithay::utils::DeviceFd; -use smithay::wayland::dmabuf::{DmabufFeedbackBuilder, DmabufGlobal, DmabufFeedback}; +use smithay::wayland::dmabuf::{DmabufFeedback, DmabufFeedbackBuilder, DmabufGlobal}; use smithay_drm_extras::drm_scanner::{DrmScanEvent, DrmScanner}; use smithay_drm_extras::edid::EdidInfo; +use wayland_protocols::wp::linux_dmabuf::zv1::server::zwp_linux_dmabuf_feedback_v1::TrancheFlags; +use wayland_protocols::wp::presentation_time::server::wp_presentation_feedback; +use super::RenderResult; use crate::config::Config; -use crate::niri::{OutputRenderElements, State, RedrawState}; +use crate::niri::{OutputRenderElements, RedrawState, State}; use crate::utils::get_monotonic_time; use crate::Niri; -use super::RenderResult; - const SUPPORTED_COLOR_FORMATS: &[Fourcc] = &[Fourcc::Argb8888, Fourcc::Abgr8888]; pub struct Tty { -- cgit