Skip to content

Commit b55fe76

Browse files
committed
remove unused serde::Serialize from Scenario
1 parent b374a11 commit b55fe76

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

database/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,20 +249,15 @@ impl fmt::Display for Profile {
249249
///
250250
/// These are usually reported to users in a "flipped" way. For example,
251251
/// `Cache::Empty` means we're doing a "full" build. We present this to users as "full".
252-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, serde::Serialize)]
253-
#[serde(tag = "variant", content = "name")]
252+
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
254253
pub enum Scenario {
255254
/// Empty cache (i.e., full build)
256-
#[serde(rename = "full")]
257255
Empty,
258256
/// Empty cache but still incremental (i.e., a full incremental build)
259-
#[serde(rename = "incr-full")]
260257
IncrementalEmpty,
261258
/// Cache is fully up-to-date (i.e., no code has changed)
262-
#[serde(rename = "incr-unchanged")]
263259
IncrementalFresh,
264260
/// Cache is mostly up-to-date but some code has been changed
265-
#[serde(rename = "incr-patched")]
266261
IncrementalPatch(PatchName),
267262
}
268263

0 commit comments

Comments
 (0)