mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-24 06:24:19 +02:00
lint: cargo fmt and clippy
This commit is contained in:
parent
4ce499553d
commit
238a563f2b
1 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ fn main() -> iced::Result {
|
|||
|
||||
pub fn setup_logger() -> Result<(), fern::InitError> {
|
||||
attach_windows_console();
|
||||
|
||||
|
||||
let colors = ColoredLevelConfig::new().info(Color::Green);
|
||||
|
||||
let make_formatter = |use_colors: bool| {
|
||||
|
|
@ -80,13 +80,13 @@ pub fn setup_logger() -> Result<(), fern::InitError> {
|
|||
|
||||
/// (Windows) Allow the application to display logs to the terminal
|
||||
/// regardless if it was compiled with `windows_subsystem = "windows"`.
|
||||
///
|
||||
///
|
||||
/// This is a no-op when compiled to non-windows targets.
|
||||
fn attach_windows_console() {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
use win32console::console::WinConsole;
|
||||
|
||||
|
||||
const ATTACH_PARENT_PROCESS: u32 = 0xFFFFFFFF;
|
||||
let _ = WinConsole::attach_console(ATTACH_PARENT_PROCESS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue