Skip to content

Commit

Permalink
Proper organization
Browse files Browse the repository at this point in the history
  • Loading branch information
LostQuasar committed Jun 13, 2024
1 parent 0787ace commit 6855665
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/rzap/mod.rs → src/api.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
pub mod data_type;

use data_type::*;
use crate::data_type::*;
use reqwest::header;
use std::{error::Error, fmt::Debug};
use strum_macros::EnumString;
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
//!
//! A rust library for connecting to an openshock server

pub mod rzap;
#[cfg(test)]
mod tests;
pub mod api;
pub mod data_type;
5 changes: 1 addition & 4 deletions src/tests.rs → tests/tests.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use dotenv::dotenv;
use rzap::{api::{OpenShockAPI, ShockerSource}, data_type::ControlType};
use std::hash::{DefaultHasher, Hash, Hasher};

use crate::{
rzap::data_type::ControlType,
rzap::{OpenShockAPI, ShockerSource},
};

fn calculate_hash<T: Hash>(t: &T) -> u64 {
let mut s = DefaultHasher::new();
Expand Down

0 comments on commit 6855665

Please sign in to comment.