Skip to content

Commit 97d7c9d

Browse files
authored
feat: upgrade toolchain to 2025-12-12 (#90)
1 parent 26d5394 commit 97d7c9d

File tree

18 files changed

+96
-72
lines changed

18 files changed

+96
-72
lines changed

Cargo.lock

Lines changed: 75 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/src/file/epoll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ impl FileLike for Epoll {
446446
Ok(Kstat::default())
447447
}
448448

449-
fn path(&self) -> Cow<str> {
449+
fn path(&self) -> Cow<'_, str> {
450450
"anon_inode:[eventpoll]".into()
451451
}
452452

api/src/file/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl FileLike for EventFd {
107107
Ok(())
108108
}
109109

110-
fn path(&self) -> Cow<str> {
110+
fn path(&self) -> Cow<'_, str> {
111111
"anon_inode:[eventfd]".into()
112112
}
113113

api/src/file/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl FileLike for File {
169169
self.nonblock.load(Ordering::Acquire)
170170
}
171171

172-
fn path(&self) -> Cow<str> {
172+
fn path(&self) -> Cow<'_, str> {
173173
path_for(self.inner.location())
174174
}
175175

@@ -231,7 +231,7 @@ impl FileLike for Directory {
231231
Ok(metadata_to_kstat(&self.inner.metadata()?))
232232
}
233233

234-
fn path(&self) -> Cow<str> {
234+
fn path(&self) -> Cow<'_, str> {
235235
path_for(&self.inner)
236236
}
237237

api/src/file/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ pub trait FileLike: Pollable + Send + Sync {
248248
fn write(&self, src: &mut SealedBuf) -> AxResult<usize>;
249249
fn stat(&self) -> AxResult<Kstat>;
250250
fn into_any(self: Arc<Self>) -> Arc<dyn Any + Send + Sync>;
251-
fn path(&self) -> Cow<str>;
251+
fn path(&self) -> Cow<'_, str>;
252252
fn ioctl(&self, _cmd: u32, _arg: usize) -> AxResult<usize> {
253253
Err(AxError::NotATty)
254254
}

api/src/file/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl FileLike for Socket {
5656
.set_option(SetSocketOption::NonBlocking(&nonblocking))
5757
}
5858

59-
fn path(&self) -> Cow<str> {
59+
fn path(&self) -> Cow<'_, str> {
6060
format!("socket:[{}]", self as *const _ as usize).into()
6161
}
6262

api/src/file/pidfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl FileLike for PidFd {
3939
Ok(Kstat::default())
4040
}
4141

42-
fn path(&self) -> Cow<str> {
42+
fn path(&self) -> Cow<'_, str> {
4343
"anon_inode:[pidfd]".into()
4444
}
4545

api/src/file/pipe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl FileLike for Pipe {
187187
})
188188
}
189189

190-
fn path(&self) -> Cow<str> {
190+
fn path(&self) -> Cow<'_, str> {
191191
format!("pipe:[{}]", self as *const _ as usize).into()
192192
}
193193

api/src/file/signalfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl FileLike for Signalfd {
166166
Ok(())
167167
}
168168

169-
fn path(&self) -> Cow<str> {
169+
fn path(&self) -> Cow<'_, str> {
170170
"anon_inode:[signalfd]".into()
171171
}
172172

api/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![no_std]
22
#![feature(likely_unlikely)]
33
#![feature(bstr)]
4-
#![feature(maybe_uninit_slice)]
54
#![allow(missing_docs)]
65
#![allow(clippy::not_unsafe_ptr_arg_deref)]
76

0 commit comments

Comments
 (0)