From edc72928f99ca29666dcb3b4e240378944001ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20L=C3=B3pez?= Date: Wed, 6 Mar 2024 18:56:17 +0100 Subject: [PATCH] elf/tests: remove unnecessary qualification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following clippy warning on the nightly toolchain: error: unnecessary qualification --> kernel/src/elf/mod.rs:2539:29 | 2539 | assert_eq!(res, Err(crate::elf::ElfError::InvalidPhdrSize)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: requested on the command line with `-D unused-qualifications` help: remove the unnecessary path segments | 2539 - assert_eq!(res, Err(crate::elf::ElfError::InvalidPhdrSize)); 2539 + assert_eq!(res, Err(ElfError::InvalidPhdrSize)); | Signed-off-by: Carlos López --- kernel/src/elf/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/elf/mod.rs b/kernel/src/elf/mod.rs index c6e7b7d2b..9978563c9 100644 --- a/kernel/src/elf/mod.rs +++ b/kernel/src/elf/mod.rs @@ -2536,7 +2536,7 @@ mod tests { // Use the Elf64File::read method to create an Elf64File instance let res = Elf64File::read(&byte_data); - assert_eq!(res, Err(crate::elf::ElfError::InvalidPhdrSize)); + assert_eq!(res, Err(ElfError::InvalidPhdrSize)); // Construct an Elf64Hdr instance from the byte data let elf_hdr = Elf64Hdr::read(&byte_data);