|
4 | 4 | //!
|
5 | 5 | //! The responses are calculated in the server.rs file.
|
6 | 6 |
|
7 |
| -use database::Benchmark; |
8 |
| -use serde::{Deserialize, Serialize}; |
9 |
| -use std::fmt; |
10 | 7 | use std::result::Result as StdResult;
|
11 | 8 |
|
12 |
| -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] |
13 |
| -pub struct StyledBenchmarkName { |
14 |
| - pub name: Benchmark, |
15 |
| - pub profile: crate::db::Profile, |
16 |
| -} |
17 |
| - |
18 |
| -impl fmt::Display for StyledBenchmarkName { |
19 |
| - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
20 |
| - write!(f, "{}-{}", self.name, self.profile) |
21 |
| - } |
22 |
| -} |
23 |
| - |
24 |
| -impl Serialize for StyledBenchmarkName { |
25 |
| - fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> |
26 |
| - where |
27 |
| - S: serde::ser::Serializer, |
28 |
| - { |
29 |
| - serializer.collect_str(&self) |
30 |
| - } |
31 |
| -} |
32 |
| - |
33 | 9 | pub type ServerResult<T> = StdResult<T, String>;
|
34 | 10 |
|
35 | 11 | pub mod info {
|
@@ -65,11 +41,6 @@ pub mod dashboard {
|
65 | 41 | }
|
66 | 42 | }
|
67 | 43 |
|
68 |
| -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
69 |
| -pub struct CommitResponse { |
70 |
| - pub commit: Option<String>, |
71 |
| -} |
72 |
| - |
73 | 44 | pub mod graph {
|
74 | 45 | use collector::Bound;
|
75 | 46 | use serde::{Deserialize, Serialize};
|
@@ -308,7 +279,6 @@ pub mod self_profile {
|
308 | 279 | pub base_commit: Option<String>,
|
309 | 280 | pub benchmark: String,
|
310 | 281 | pub run_name: String,
|
311 |
| - |
312 | 282 | pub sort_idx: String,
|
313 | 283 | }
|
314 | 284 |
|
|
0 commit comments