Skip to content

Commit 8aff03a

Browse files
authored
Merge pull request #1626 from jeckersb/rust-1.90
Fixes for rust 1.90
2 parents 2003193 + c1316df commit 8aff03a

File tree

4 files changed

+5
-22
lines changed

4 files changed

+5
-22
lines changed

crates/lib/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ repository = "https://github.com/bootc-dev/bootc"
88
# project isn't actually published as a crate.
99
version = "1.8.0"
1010
# In general we try to keep this pinned to what's in the latest RHEL9.
11-
# However right now, we bumped to 1.82 as that's what composefs-rs uses.
12-
rust-version = "1.82.0"
11+
rust-version = "1.84.0"
1312

1413
include = ["/src", "LICENSE-APACHE", "LICENSE-MIT"]
1514

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 = [

crates/ostree-ext/src/generic_decompress.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const DOCKER_TYPE_LAYER_TAR: &str = "application/vnd.docker.image.rootfs.diff.ta
2424

2525
/// Extends the `Read` trait with another method to get mutable access to the inner reader
2626
trait ReadWithGetInnerMut: Read + Send + 'static {
27-
fn get_inner_mut(&mut self) -> &mut (dyn Read);
27+
fn get_inner_mut(&mut self) -> &mut dyn Read;
2828
}
2929

3030
// TransparentDecompressor
@@ -38,7 +38,7 @@ impl<R: Read + Send + 'static> Read for TransparentDecompressor<R> {
3838
}
3939

4040
impl<R: Read + Send + 'static> ReadWithGetInnerMut for TransparentDecompressor<R> {
41-
fn get_inner_mut(&mut self) -> &mut (dyn Read) {
41+
fn get_inner_mut(&mut self) -> &mut dyn Read {
4242
&mut self.0
4343
}
4444
}
@@ -54,7 +54,7 @@ impl<R: std::io::BufRead + Send + 'static> Read for GzipDecompressor<R> {
5454
}
5555

5656
impl<R: std::io::BufRead + Send + 'static> ReadWithGetInnerMut for GzipDecompressor<R> {
57-
fn get_inner_mut(&mut self) -> &mut (dyn Read) {
57+
fn get_inner_mut(&mut self) -> &mut dyn Read {
5858
self.0.get_mut()
5959
}
6060
}
@@ -72,7 +72,7 @@ impl<'a: 'static, R: std::io::BufRead + Send + 'static> Read for ZstdDecompresso
7272
impl<'a: 'static, R: std::io::BufRead + Send + 'static> ReadWithGetInnerMut
7373
for ZstdDecompressor<'a, R>
7474
{
75-
fn get_inner_mut(&mut self) -> &mut (dyn Read) {
75+
fn get_inner_mut(&mut self) -> &mut dyn Read {
7676
self.0.get_mut()
7777
}
7878
}

0 commit comments

Comments
 (0)