Skip to content

Commit 8770298

Browse files
committed
fixup! Bump MSRV to 1.85
1 parent 624b7d5 commit 8770298

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

capi/src/inspect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl Default for blaze_inspect_elf_src {
6969
}
7070
}
7171

72-
#[cfg_attr(not(test), allow(unused))]
72+
#[cfg_attr(not(test), expect(unused))]
7373
impl blaze_inspect_elf_src {
7474
fn from(other: Elf) -> ManuallyDrop<Self> {
7575
let Elf {

dev/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ fn toolize_impl<'p, S, I>(
199199
&mut identity as &mut dyn FnMut(Command) -> Command
200200
};
201201

202-
#[allow(clippy::redundant_closure_for_method_calls)]
202+
#[expect(clippy::redundant_closure_for_method_calls)]
203203
let () = run(
204204
tool,
205205
options

src/elf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod parser;
22
#[cfg_attr(not(feature = "dwarf"), allow(unused_variables))]
33
mod resolver;
4-
#[allow(dead_code, non_camel_case_types)]
4+
#[expect(dead_code, non_camel_case_types)]
55
pub(crate) mod types;
66

77
// Please adjust the documentation when adjusting directories.

src/elf/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ where
12641264
}
12651265

12661266
/// Perform an operation on each symbol.
1267-
#[allow(clippy::needless_borrows_for_generic_args)]
1267+
#[expect(clippy::needless_borrows_for_generic_args)]
12681268
pub(crate) fn for_each(&self, opts: &FindAddrOpts, f: &mut ForEachFn) -> Result<()> {
12691269
let cache = self.cache.ensure_symtab_cache()?;
12701270
let symtab = &cache.syms;

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod private {
2828

2929
impl Sealed for io::Error {}
3030
#[cfg(feature = "breakpad")]
31-
#[allow(clippy::absolute_paths)]
31+
#[expect(clippy::absolute_paths)]
3232
impl Sealed for (&[u8], nom::Err<nom::error::VerboseError<&[u8]>>) {}
3333
#[cfg(feature = "dwarf")]
3434
impl Sealed for gimli::Error {}

src/file_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl From<&libc::stat> for FileMeta {
2828
fn from(other: &libc::stat) -> Self {
2929
// Casts are necessary because on Android some libc types do not
3030
// use proper typedefs. https://github.com/rust-lang/libc/issues/3285
31-
#[allow(trivial_numeric_casts)]
31+
#[expect(trivial_numeric_casts)]
3232
Self {
3333
dev: other.st_dev as _,
3434
inode: other.st_ino as _,

src/gsym/resolver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use super::types::INFO_TYPE_INLINE_INFO;
3434
use super::types::INFO_TYPE_LINE_TABLE_INFO;
3535

3636

37-
#[allow(dead_code)]
37+
#[expect(dead_code)]
3838
enum Data<'dat> {
3939
Mmap(Mmap),
4040
Slice(&'dat [u8]),

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub mod __private {
210210

211211
#[cfg(feature = "tracing")]
212212
#[macro_use]
213-
#[allow(unused_imports)]
213+
#[expect(unused_imports)]
214214
mod log {
215215
pub(crate) use tracing::debug;
216216
pub(crate) use tracing::error;

src/maps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ mod tests {
436436
}
437437

438438
/// Check that we can parse `/proc/self/maps`.
439-
#[allow(clippy::suspicious_map)]
439+
#[expect(clippy::suspicious_map)]
440440
#[test]
441441
fn self_map_parsing() {
442442
let maps = parse(Pid::Slf).unwrap();

src/mmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub struct Mmap {
8888
view: Range<u64>,
8989
}
9090

91-
#[allow(rustdoc::private_intra_doc_links)]
91+
#[expect(rustdoc::private_intra_doc_links)]
9292
impl Mmap {
9393
/// Create a [`Builder`] for creating a customizable memory mapping.
9494
#[doc(hidden)]

0 commit comments

Comments
 (0)