Skip to content

Commit 5f1659e

Browse files
Apply struct shorthands
1 parent 1a38061 commit 5f1659e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/server.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ pub fn handle_status_page(data: &InputData) -> status::Response {
268268
last_commit: last_commit.commit.clone(),
269269
benchmarks: benchmark_state,
270270
missing,
271-
current: current,
271+
current,
272272
}
273273
}
274274

@@ -365,7 +365,7 @@ pub async fn handle_graph(body: graph::Request, data: &InputData) -> ServerResul
365365
entry.push(graph::GraphData {
366366
commit: cc.lookup(commit),
367367
absolute: value,
368-
percent: percent,
368+
percent,
369369
y: if body.absolute { value } else { percent },
370370
x: date_data.date.0.timestamp() as u64 * 1000, // all dates are since 1970
371371
is_interpolated: data
@@ -448,7 +448,7 @@ pub async fn handle_graph(body: graph::Request, data: &InputData) -> ServerResul
448448
entry.push(graph::GraphData {
449449
commit: cc.lookup(commit),
450450
absolute: value,
451-
percent: percent,
451+
percent,
452452
y: if body.absolute { value } else { percent },
453453
x: date_data.date.0.timestamp() as u64 * 1000, // all dates are since 1970
454454
is_interpolated: data

0 commit comments

Comments
 (0)