chore: add rustfmt config
This commit is contained in:
parent
cb4a0d3a3a
commit
4b1f388a4f
78 changed files with 394 additions and 485 deletions
|
|
@ -21,20 +21,19 @@ pub use route::{Route, RouteProps};
|
|||
mod spa_utils;
|
||||
pub use spa_utils::Channel;
|
||||
|
||||
use libspa::{
|
||||
param::{ParamType, format::FormatProperties},
|
||||
pod::{self, Pod, serialize::PodSerializer},
|
||||
utils::SpaTypes,
|
||||
};
|
||||
use pipewire::{
|
||||
device::{DeviceChangeMask, DeviceListener},
|
||||
main_loop::MainLoopWeak,
|
||||
metadata::MetadataListener,
|
||||
node::NodeListener,
|
||||
proxy::{ProxyListener, ProxyT},
|
||||
types::ObjectType,
|
||||
};
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
use libspa::param::ParamType;
|
||||
use libspa::param::format::FormatProperties;
|
||||
use libspa::pod::serialize::PodSerializer;
|
||||
use libspa::pod::{self, Pod};
|
||||
use libspa::utils::SpaTypes;
|
||||
use pipewire::device::{DeviceChangeMask, DeviceListener};
|
||||
use pipewire::main_loop::MainLoopWeak;
|
||||
use pipewire::metadata::MetadataListener;
|
||||
use pipewire::node::NodeListener;
|
||||
use pipewire::proxy::{ProxyListener, ProxyT};
|
||||
use pipewire::types::ObjectType;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub type NodeId = u32;
|
||||
pub type RouteId = u32;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
// Copyright 2025 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use crate::{Channel, spa_utils::array_from_pod};
|
||||
use libspa::{pod::Pod, utils::Id};
|
||||
use crate::Channel;
|
||||
use crate::spa_utils::array_from_pod;
|
||||
use libspa::pod::Pod;
|
||||
use libspa::utils::Id;
|
||||
use pipewire::node::{NodeInfoRef, NodeState};
|
||||
use std::ffi::c_float;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
// Copyright 2025 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use crate::{Availability, spa_utils::string_from_pod};
|
||||
use crate::Availability;
|
||||
use crate::spa_utils::string_from_pod;
|
||||
use libspa::pod::Pod;
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
|
|
|
|||
|
|
@ -3,11 +3,10 @@
|
|||
|
||||
use std::ffi::{c_float, c_int};
|
||||
|
||||
use crate::{
|
||||
Availability, Channel, Direction,
|
||||
spa_utils::{array_from_pod, string_from_pod},
|
||||
};
|
||||
use libspa::{pod::Pod, utils::Id};
|
||||
use crate::spa_utils::{array_from_pod, string_from_pod};
|
||||
use crate::{Availability, Channel, Direction};
|
||||
use libspa::pod::Pod;
|
||||
use libspa::utils::Id;
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct Route {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue