Elegantly record your screen
refactor: run rustfmt
Dave Patrick Caberto775aa8fc1fef
diff --git a/src/device.rs b/src/device.rsindex 03958cf..30f0942 100644--- a/src/device.rs+++ b/src/device.rs@@ -1,4 +1,4 @@-use anyhow::{anyhow, ensure, Context, Result};+use anyhow::{Context, Result, anyhow, ensure};use gettextrs::gettext;use gst::prelude::*;diff --git a/src/main.rs b/src/main.rsindex 5372144..25cdaae 100644--- a/src/main.rs+++ b/src/main.rs@@ -43,7 +43,7 @@ mod settings;mod timer;mod window;-use gettextrs::{gettext, LocaleCategory};+use gettextrs::{LocaleCategory, gettext};use gtk::{gio, glib};use self::{diff --git a/src/pipeline.rs b/src/pipeline.rsindex f04420c..44ba415 100644--- a/src/pipeline.rs+++ b/src/pipeline.rs@@ -1,4 +1,4 @@-use anyhow::{bail, ensure, Context, Ok, Result};+use anyhow::{Context, Ok, Result, bail, ensure};use gst::prelude::*;use gtk::graphene::Rect;diff --git a/src/profile.rs b/src/profile.rsindex da2a243..6162f6a 100644--- a/src/profile.rs+++ b/src/profile.rs@@ -1,4 +1,4 @@-use anyhow::{bail, Context, Result};+use anyhow::{Context, Result, bail};use gst::prelude::*;use gtk::{gio,@@ -322,9 +322,11 @@ mod tests {panic!("can't attach profile `{}`: {:?}", profile.id(), err);}- assert!(pipeline- .find_unlinked_pad(gst::PadDirection::Sink)- .is_none());+ assert!(+ pipeline+ .find_unlinked_pad(gst::PadDirection::Sink)+ .is_none()+ );assert!(pipeline.find_unlinked_pad(gst::PadDirection::Src).is_none());assert!(profile.is_available());diff --git a/src/screencast_portal/mod.rs b/src/screencast_portal/mod.rsindex 05eabaf..9612079 100644--- a/src/screencast_portal/mod.rs+++ b/src/screencast_portal/mod.rs@@ -3,7 +3,7 @@ mod types;mod variant_dict;mod window_identifier;-use anyhow::{anyhow, bail, Context, Result};+use anyhow::{Context, Result, anyhow, bail};use futures_channel::oneshot;use futures_util::future::{self, Either};use gtk::{diff --git a/src/screencast_portal/variant_dict.rs b/src/screencast_portal/variant_dict.rsindex 4f82ee0..f31e02a 100644--- a/src/screencast_portal/variant_dict.rs+++ b/src/screencast_portal/variant_dict.rs@@ -1,4 +1,4 @@-use anyhow::{anyhow, Result};+use anyhow::{Result, anyhow};use gtk::glib::{self, prelude::*};use std::{borrow::Cow, collections::HashMap, fmt};