File tree Expand file tree Collapse file tree 9 files changed +22
-18
lines changed
Expand file tree Collapse file tree 9 files changed +22
-18
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub async fn allocation(
1616) -> Result < allocation:: Allocation , Box < dyn std:: error:: Error > > {
1717 // retrieve allocation
1818 Ok ( client
19- . read :: < allocation:: Allocation > ( & format ! ( "allocations/{id}" ) , "" )
19+ . read :: < allocation:: Allocation > ( & format ! ( "allocations/{id}" ) , None )
2020 . await ?)
2121}
2222
@@ -57,7 +57,7 @@ pub async fn allocations(
5757
5858 // retrieve allocations
5959 Ok ( client
60- . read :: < allocation:: Allocations > ( "allocations" , & params)
60+ . read :: < allocation:: Allocations > ( "allocations" , Some ( & params) )
6161 . await ?)
6262}
6363
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn cost(
1515) -> Result < cost:: Cost , Box < dyn std:: error:: Error > > {
1616 // retrieve cost target period
1717 Ok ( client
18- . read :: < cost:: Cost > ( & format ! ( "cost-periods/{id}" ) , "" )
18+ . read :: < cost:: Cost > ( & format ! ( "cost-periods/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -40,7 +40,9 @@ pub async fn costs(
4040 }
4141
4242 // retrieve clients
43- Ok ( client. read :: < cost:: Costs > ( "cost-periods" , & params) . await ?)
43+ Ok ( client
44+ . read :: < cost:: Costs > ( "cost-periods" , Some ( & params) )
45+ . await ?)
4446}
4547
4648#[ cfg( test) ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn customer(
1515) -> Result < model:: client:: Client , Box < dyn std:: error:: Error > > {
1616 // retrieve client
1717 Ok ( client
18- . read :: < model:: client:: Client > ( & format ! ( "clients/{id}" ) , "" )
18+ . read :: < model:: client:: Client > ( & format ! ( "clients/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -41,7 +41,7 @@ pub async fn clients(
4141
4242 // retrieve clients
4343 Ok ( client
44- . read :: < model:: client:: Clients > ( "clients" , & params)
44+ . read :: < model:: client:: Clients > ( "clients" , Some ( & params) )
4545 . await ?)
4646}
4747
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn expense_item(
1515) -> Result < expense_item:: ExpenseItem , Box < dyn std:: error:: Error > > {
1616 // retrieve expense item
1717 Ok ( client
18- . read :: < expense_item:: ExpenseItem > ( & format ! ( "expense-items/{id}" ) , "" )
18+ . read :: < expense_item:: ExpenseItem > ( & format ! ( "expense-items/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -38,7 +38,7 @@ pub async fn expense_items(
3838
3939 // retrieve expense items
4040 Ok ( client
41- . read :: < expense_item:: ExpenseItems > ( "expense-items" , & params)
41+ . read :: < expense_item:: ExpenseItems > ( "expense-items" , Some ( & params) )
4242 . await ?)
4343}
4444
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn expense_report(
1515) -> Result < expense_report:: ExpenseReport , Box < dyn std:: error:: Error > > {
1616 // retrieve expense report
1717 Ok ( client
18- . read :: < expense_report:: ExpenseReport > ( & format ! ( "expense-reports/{id}" ) , "" )
18+ . read :: < expense_report:: ExpenseReport > ( & format ! ( "expense-reports/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -29,7 +29,7 @@ pub async fn expense_reports(
2929) -> Result < expense_report:: ExpenseReports , Box < dyn std:: error:: Error > > {
3030 // retrieve expense reports
3131 Ok ( client
32- . read :: < expense_report:: ExpenseReports > ( "expense_reports" , & "limit=100" )
32+ . read :: < expense_report:: ExpenseReports > ( "expense_reports" , Some ( & "limit=100" ) )
3333 . await ?)
3434}
3535
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn member(
1515) -> Result < member:: Member , Box < dyn std:: error:: Error > > {
1616 // retrieve member
1717 Ok ( client
18- . read :: < member:: Member > ( & format ! ( "members/{id}" ) , "" )
18+ . read :: < member:: Member > ( & format ! ( "members/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -41,7 +41,9 @@ pub async fn members(
4141 }
4242
4343 // retrieve members
44- Ok ( client. read :: < member:: Members > ( "members" , & params) . await ?)
44+ Ok ( client
45+ . read :: < member:: Members > ( "members" , Some ( & params) )
46+ . await ?)
4547}
4648
4749#[ cfg( test) ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn project(
1515) -> Result < project:: Project , Box < dyn std:: error:: Error > > {
1616 // retrieve project
1717 Ok ( client
18- . read :: < project:: Project > ( & format ! ( "projects/{id}" ) , "" )
18+ . read :: < project:: Project > ( & format ! ( "projects/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -56,7 +56,7 @@ pub async fn projects(
5656
5757 // retrieve projects
5858 Ok ( client
59- . read :: < project:: Projects > ( "projects" , & params)
59+ . read :: < project:: Projects > ( "projects" , Some ( & params) )
6060 . await ?)
6161}
6262
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn time_entry(
1515) -> Result < time:: TimeEntry , Box < dyn std:: error:: Error > > {
1616 // retrieve time entry
1717 Ok ( client
18- . read :: < time:: TimeEntry > ( & format ! ( "time-entries/{id}" ) , "" )
18+ . read :: < time:: TimeEntry > ( & format ! ( "time-entries/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -61,7 +61,7 @@ pub async fn time_entries(
6161
6262 // retrieve time entries
6363 Ok ( client
64- . read :: < time:: TimeEntries > ( "time-entries" , & params)
64+ . read :: < time:: TimeEntries > ( "time-entries" , Some ( & params) )
6565 . await ?)
6666}
6767
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn utilization(
1515) -> Result < utilization:: Utilization , Box < dyn std:: error:: Error > > {
1616 // retrieve utilization target period
1717 Ok ( client
18- . read :: < utilization:: Utilization > ( & format ! ( "utilization-target-periods/{id}" ) , "" )
18+ . read :: < utilization:: Utilization > ( & format ! ( "utilization-target-periods/{id}" ) , None )
1919 . await ?)
2020}
2121
@@ -41,7 +41,7 @@ pub async fn utilizations(
4141
4242 // retrieve clients
4343 Ok ( client
44- . read :: < utilization:: Utilizations > ( "utilization-target-periods" , & params)
44+ . read :: < utilization:: Utilizations > ( "utilization-target-periods" , Some ( & params) )
4545 . await ?)
4646}
4747
You can’t perform that action at this time.
0 commit comments