Skip to content

Commit 7874ae7

Browse files
committed
chore: bump rust version from 1.81 to 1.88
1 parent 13d9a37 commit 7874ae7

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

enclaver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "enclaver"
33
version = "0.5.0"
44
edition = "2021"
5-
rust-version = "1.81"
5+
rust-version = "1.88"
66
default-run = "enclaver"
77

88
[[bin]]

enclaver/src/http_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl HttpServer {
6161
)
6262
.await
6363
{
64-
eprintln!("Error serving connection: {:?}", err);
64+
eprintln!("Error serving connection: {err:?}");
6565
}
6666
});
6767
}

enclaver/src/images.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl ImageManager {
6161
.docker
6262
.inspect_image(name)
6363
.await
64-
.with_context(|| format!("inspecting image {}", name))?;
64+
.with_context(|| format!("inspecting image {name}"))?;
6565

6666
match img.id {
6767
Some(id) => Ok(ImageRef { id }),
@@ -230,18 +230,18 @@ impl FileBuilder {
230230

231231
match &self.source {
232232
FileSource::Local { .. } => {
233-
write!(&mut line, " files/{}", local_path)?;
233+
write!(&mut line, " files/{local_path}")?;
234234
}
235235
FileSource::Image {
236236
name: image_name,
237237
path,
238238
} => {
239239
let src_path = path.must_to_str()?;
240-
write!(&mut line, " --from={} {}", image_name, src_path)?;
240+
write!(&mut line, " --from={image_name} {src_path}")?;
241241
}
242242
}
243243

244-
writeln!(&mut line, " {}", dst_path)?;
244+
writeln!(&mut line, " {dst_path}")?;
245245

246246
Ok(line)
247247
}
@@ -324,7 +324,7 @@ impl LayerBuilder {
324324
if let Some(entrypoint) = &self.entrypoint {
325325
let ep_array_str = serde_json::to_string(entrypoint)?;
326326
trace!("writing ENTRYPOINT: {}", ep_array_str);
327-
dw.write_all(format!("ENTRYPOINT {}\n", ep_array_str).as_bytes())
327+
dw.write_all(format!("ENTRYPOINT {ep_array_str}\n").as_bytes())
328328
.await?;
329329
}
330330

enclaver/src/nitro_cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl NitroCLIArgs for RunEnclaveArgs {
192192

193193
if let Some(cid) = self.cid {
194194
args.push("--enclave-cid".into());
195-
args.push(format!("{}", cid).into());
195+
args.push(format!("{cid}").into());
196196
}
197197

198198
if self.debug_mode {

enclaver/src/policy/ip_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ mod tests {
106106
let pos = tc.positives.iter().map(|a| a.parse::<IpAddr>().unwrap());
107107

108108
for a in pos {
109-
println!("pattern={:?}, addr={}", pat, a);
109+
println!("pattern={pat:?}, addr={a}");
110110
assert!(pat.matches(a));
111111
}
112112

0 commit comments

Comments
 (0)