Skip to content

Commit 6f2812f

Browse files
bryantbiggsmxpv
authored andcommitted
fix: Correct lint warnings, bump toolchain version due to cargo::key=value build directive which is reserved for future use
1 parent fb4cb85 commit 6f2812f

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

crates/runc/src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ pub async fn write_value_to_temp_file<T: Serialize>(value: &T) -> Result<String,
9898
let filename = format!("{}/runc-process-{}", xdg_runtime_dir(), Uuid::new_v4());
9999
let mut f = tokio::fs::OpenOptions::new()
100100
.create(true)
101+
.truncate(true)
101102
.write(true)
102103
.open(&filename)
103104
.await

crates/shim/src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn parse<S: AsRef<OsStr>>(args: &[S]) -> Result<Flags> {
6060
})
6161
.map_err(|e| Error::InvalidArgument(e.to_string()))?;
6262

63-
if let Some(action) = args.get(0) {
63+
if let Some(action) = args.first() {
6464
flags.action = action.into();
6565
}
6666

crates/shim/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,12 @@ macro_rules! cfg_async {
9494
}
9595

9696
cfg_not_async! {
97-
pub use crate::synchronous::*;
9897
pub use crate::synchronous::publisher;
9998
pub use protos::shim::shim_ttrpc::Task;
10099
pub use protos::ttrpc::TtrpcContext;
101100
}
102101

103102
cfg_async! {
104-
pub use crate::asynchronous::*;
105103
pub use crate::asynchronous::publisher;
106104
pub use protos::shim_async::Task;
107105
pub use protos::ttrpc::r#async::TtrpcContext;

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.74"
2+
channel = "1.77"
33
components = ["rustfmt", "clippy", "llvm-tools"]

0 commit comments

Comments
 (0)