From 42f6ae4832c4357f72bdf03e654ce69b84bcdbba Mon Sep 17 00:00:00 2001 From: Piyush1045 Date: Tue, 11 Nov 2025 00:53:07 +0530 Subject: [PATCH 1/2] test_auto_format 02 --- build.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build.rs b/build.rs index adebd659ade..b340ed9d82e 100644 --- a/build.rs +++ b/build.rs @@ -4,12 +4,10 @@ fn main() { let mut res = winresource::WindowsResource::new(); if std::path::Path::new("logo.ico").exists() { res.set_icon("logo.ico"); - } else { - println!("cargo:warning=logo.ico not found, skipping icon embedding"); + } else {println!("cargo:warning=logo.ico not found, skipping icon embedding"); return; } - res.compile() - .map_err(|e| { + res.compile().map_err(|e| { println!("cargo:warning=Failed to compile Windows resources: {e}"); }) .ok(); From 6df0207a93ddbdbdf50a1eaa37edcffab6fcfd82 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 10 Nov 2025 19:25:28 +0000 Subject: [PATCH 2/2] Auto-format code [skip ci] --- build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index b340ed9d82e..adebd659ade 100644 --- a/build.rs +++ b/build.rs @@ -4,10 +4,12 @@ fn main() { let mut res = winresource::WindowsResource::new(); if std::path::Path::new("logo.ico").exists() { res.set_icon("logo.ico"); - } else {println!("cargo:warning=logo.ico not found, skipping icon embedding"); + } else { + println!("cargo:warning=logo.ico not found, skipping icon embedding"); return; } - res.compile().map_err(|e| { + res.compile() + .map_err(|e| { println!("cargo:warning=Failed to compile Windows resources: {e}"); }) .ok();