Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Oct 13, 2024
1 parent 7aeed56 commit 4b7ed77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ struct State<S: CaptureSource> {

struct OutputProbeState {
partial_outputs: HashMap<TypedObjectId<WlOutput>, PartialOutputInfo>, // key is xdg-output name (wayland object ID)
outputs: HashMap<TypedObjectId<WlOutput>, Option<OutputInfo>>, // none for disabled
outputs: HashMap<TypedObjectId<WlOutput>, Option<OutputInfo>>, // none for disabled
}

enum EncConstructionStage<S> {
Expand Down Expand Up @@ -742,7 +742,6 @@ impl<S: CaptureSource + 'static> State<S> {
.bind(&eq, 3..=ZxdgOutputManagerV1::interface().version, ())
.context("your compositor does not support zxdg-output-manager and therefore is not support by wl-screenrec. See the README for supported compositors")?;


let dri_device = if let Some(dev) = &args.dri_device {
Some(dev.clone())
} else if gm
Expand Down Expand Up @@ -937,7 +936,6 @@ impl<S: CaptureSource + 'static> State<S> {
self.start_if_output_probe_complete(qhandle);
}


fn start_if_output_probe_complete(&mut self, qhandle: &QueueHandle<Self>) {
let p = if let EncConstructionStage::ProbingOutputs(p) = &self.enc {
p
Expand Down

0 comments on commit 4b7ed77

Please sign in to comment.