Skip to content

Commit ff8b1b4

Browse files
committed
rust-1.90: Remove newly-detected dead code
Signed-off-by: John Eckersberg <[email protected]>
1 parent 59c3aac commit ff8b1b4

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

crates/lib/src/fsck.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use fn_error_context::context;
2020
use linkme::distributed_slice;
2121
use ostree_ext::ostree_prepareroot::Tristate;
2222
use ostree_ext::{composefs, ostree};
23-
use serde::{Deserialize, Serialize};
2423

2524
use crate::store::Storage;
2625

@@ -122,14 +121,6 @@ fn check_resolvconf(storage: &Storage) -> FsckResult {
122121
fsck_ok()
123122
}
124123

125-
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
126-
#[serde(rename_all = "kebab-case")]
127-
pub(crate) enum VerityState {
128-
Enabled,
129-
Disabled,
130-
Inconsistent((u64, u64)),
131-
}
132-
133124
#[derive(Debug, Default)]
134125
struct ObjectsVerityState {
135126
/// Count of objects with fsverity

crates/lib/src/progress_jsonl.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,17 +280,10 @@ impl ProgressWriter {
280280

281281
#[cfg(test)]
282282
mod test {
283-
use serde::Deserialize;
284283
use tokio::io::{AsyncBufReadExt, BufReader};
285284

286285
use super::*;
287286

288-
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]
289-
struct S {
290-
s: String,
291-
v: u32,
292-
}
293-
294287
#[tokio::test]
295288
async fn test_jsonl() -> Result<()> {
296289
let testvalues = [

0 commit comments

Comments
 (0)