Skip to content

Commit ee4ada4

Browse files
committed
misc cleanup
1 parent 2d2964d commit ee4ada4

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

src/interface/allocation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub async fn allocation(
1414
client: &client::Client,
1515
id: types::UUID,
1616
) -> Result<allocation::Allocation, Box<dyn std::error::Error>> {
17-
// retrieve client
17+
// retrieve allocation
1818
Ok(client
1919
.read::<allocation::Allocation>(&format!("allocations/{id}"), "")
2020
.await?)
@@ -55,7 +55,7 @@ pub async fn allocations(
5555
params = format!("{params}&endOnAfter={}", end_date.unwrap())
5656
}
5757

58-
// retrieve clients
58+
// retrieve allocations
5959
Ok(client
6060
.read::<allocation::Allocations>("allocations", &params)
6161
.await?)

src/interface/expense_item.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
//!
33
//! `interface::expense_item` consists of functions for interfacing with the Ruddr Expense Item endpoints.
44
use crate::client::client;
5-
use crate::model::expense_item;
6-
use crate::model::types;
5+
use crate::model::{expense_item, types};
76

87
/// Retrieves a specific Ruddr Expense Item object by id, and deserializes it to the corresponding model struct.
98
/// https://ruddr.readme.io/reference/get-an-expense-item

src/interface/expense_report.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
//!
33
//! `interface::expense_report` consists of functions for interfacing with the Ruddr Expense Report endpoints.
44
use crate::client::client;
5-
use crate::model::expense_report;
6-
use crate::model::types;
5+
use crate::model::{expense_report, types};
76

87
/// Retrieves a specific Ruddr Expense Report object by id, and deserializes it to the corresponding model struct.
98
/// https://ruddr.readme.io/reference/get-an-expense-report

src/interface/member.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
//!
33
//! `interface::member` consists of functions for interfacing with the Ruddr Member endpoints.
44
use crate::client::client;
5-
use crate::model::member;
6-
use crate::model::types;
5+
use crate::model::{member, types};
76

87
/// Retrieves a specific Ruddr Workspace Member object by id, and deserializes it to the corresponding model struct.
98
/// https://ruddr.readme.io/reference/get-a-member

src/interface/project.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
//!
33
//! `interface::project` consists of functions for interfacing with the Ruddr Project endpoints.
44
use crate::client::client;
5-
use crate::model::project;
6-
use crate::model::{enums, types};
5+
use crate::model::{enums, project, types};
76

87
/// Retrieves a specific Ruddr Project object by id, and deserializes it to the corresponding model struct.
98
/// https://ruddr.readme.io/reference/get-a-project

src/interface/time.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
//!
33
//! `interface::time` consists of functions for interfacing with the Ruddr Time Entry endpoints.
44
use crate::client::client;
5-
use crate::model::time;
6-
use crate::model::types;
5+
use crate::model::{time, types};
76

87
/// Retrieves a specific Ruddr Time Entry object by id, and deserializes it to the corresponding model struct.
98
/// https://ruddr.readme.io/reference/get-a-time-entry

0 commit comments

Comments
 (0)