From d4f688ffa5f8d4e7478e7f5c525203e039335328 Mon Sep 17 00:00:00 2001 From: hijackthe2 <2948278083@qq.com> Date: Mon, 6 Nov 2023 10:43:05 +0800 Subject: [PATCH] fix type mismatch --- builder/src/stargz.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/src/stargz.rs b/builder/src/stargz.rs index f711ddb5bf2..a8982ee15e7 100644 --- a/builder/src/stargz.rs +++ b/builder/src/stargz.rs @@ -1037,7 +1037,7 @@ mod tests { entry.toc_type = "fifo".to_owned(); assert!(entry.is_fifo()); assert!(entry.is_special()); - assert_eq!(entry.mode(), libc::S_IFIFO); + assert_eq!(entry.mode(), libc::S_IFIFO as u32); assert_eq!(entry.rdev(), 65313); assert_eq!(entry.name().unwrap().to_str(), Some("all-entry-type.tar"));