Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilken committed Mar 12, 2023
1 parent 139d9fc commit 5e3e927
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 29 deletions.
2 changes: 1 addition & 1 deletion examples/air_purifier.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, air_purifier::AirPurifierAccessory},
accessory::{air_purifier::AirPurifierAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/air_quality_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, air_quality_sensor::AirQualitySensorAccessory},
accessory::{air_quality_sensor::AirQualitySensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/carbon_dioxide_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, carbon_dioxide_sensor::CarbonDioxideSensorAccessory},
accessory::{carbon_dioxide_sensor::CarbonDioxideSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/carbon_monoxide_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, carbon_monoxide_sensor::CarbonMonoxideSensorAccessory},
accessory::{carbon_monoxide_sensor::CarbonMonoxideSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/contact_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, contact_sensor::ContactSensorAccessory},
accessory::{contact_sensor::ContactSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/door.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, door::DoorAccessory},
accessory::{door::DoorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/fan.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, fan::FanAccessory},
accessory::{fan::FanAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/fan_v2.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, fan_v2::FanV2Accessory},
accessory::{fan_v2::FanV2Accessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/garage_door_opener.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, garage_door_opener::GarageDoorOpenerAccessory},
accessory::{garage_door_opener::GarageDoorOpenerAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/humidity_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, humidity_sensor::HumiditySensorAccessory},
accessory::{humidity_sensor::HumiditySensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/leak_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, leak_sensor::LeakSensorAccessory},
accessory::{leak_sensor::LeakSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/light_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, light_sensor::LightSensorAccessory},
accessory::{light_sensor::LightSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/motion_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, motion_sensor::MotionSensorAccessory},
accessory::{motion_sensor::MotionSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/occupancy_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, occupancy_sensor::OccupancySensorAccessory},
accessory::{occupancy_sensor::OccupancySensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/outlet.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, outlet::OutletAccessory},
accessory::{outlet::OutletAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/security_system.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, security_system::SecuritySystemAccessory},
accessory::{security_system::SecuritySystemAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/smart_speaker.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, smart_speaker::SmartSpeakerAccessory},
accessory::{smart_speaker::SmartSpeakerAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/smoke_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, smoke_sensor::SmokeSensorAccessory},
accessory::{smoke_sensor::SmokeSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
6 changes: 5 additions & 1 deletion examples/stateful_programmable_switch.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, stateful_programmable_switch::StatefulProgrammableSwitchAccessory},
accessory::{
stateful_programmable_switch::StatefulProgrammableSwitchAccessory,
AccessoryCategory,
AccessoryInformation,
},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
6 changes: 5 additions & 1 deletion examples/stateless_programmable_switch.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, stateless_programmable_switch::StatelessProgrammableSwitchAccessory},
accessory::{
stateless_programmable_switch::StatelessProgrammableSwitchAccessory,
AccessoryCategory,
AccessoryInformation,
},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/switch.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, switch::SwitchAccessory},
accessory::{switch::SwitchAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/temperature_sensor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, temperature_sensor::TemperatureSensorAccessory},
accessory::{temperature_sensor::TemperatureSensorAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/thermostat.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, thermostat::ThermostatAccessory},
accessory::{thermostat::ThermostatAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/wi_fi_router.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, wi_fi_router::WiFiRouterAccessory},
accessory::{wi_fi_router::WiFiRouterAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/wi_fi_satellite.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, wi_fi_satellite::WiFiSatelliteAccessory},
accessory::{wi_fi_satellite::WiFiSatelliteAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/window.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, window::WindowAccessory},
accessory::{window::WindowAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
2 changes: 1 addition & 1 deletion examples/window_covering.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tokio;

use hap::{
accessory::{AccessoryCategory, AccessoryInformation, window_covering::WindowCoveringAccessory},
accessory::{window_covering::WindowCoveringAccessory, AccessoryCategory, AccessoryInformation},
server::{IpServer, Server},
storage::{FileStorage, Storage},
Config,
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pub use ed25519_dalek::Keypair as Ed25519Keypair;
//pub use eui48::MacAddress;
pub use macaddr::MacAddr6 as MacAddress;
pub use futures;
pub use macaddr::MacAddr6 as MacAddress;
pub use serde_json;

pub use crate::{
Expand Down

0 comments on commit 5e3e927

Please sign in to comment.