aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/logging.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-10-11 00:54:18 +0000
committerGitHub <noreply@github.com>2021-10-11 00:54:18 +0000
commitf90dd12efd808c8dcb354bb0667d63dd298cf00c (patch)
treed9c0269b1b764f58d942f28223ec19d2fff7e42d /alacritty/src/logging.rs
parentec4dc32688cfc71686c24a4edc59fd7427a6bf33 (diff)
downloadr-alacritty-f90dd12efd808c8dcb354bb0667d63dd298cf00c.tar.gz
r-alacritty-f90dd12efd808c8dcb354bb0667d63dd298cf00c.tar.bz2
r-alacritty-f90dd12efd808c8dcb354bb0667d63dd298cf00c.zip
Update rustfmt configuration
In this change I went through all current rustfmt configuration options and expanded our existing configuration with overrides whenever deemed appropriate. The `normalize_doc_attributes` option is still unstable, but seems to work without any issues. Even when passing macros like `include_str!` that is recognized properly and not normalized. So while this wasn't an issue anywhere in the code, it should make sure it never will be. When it comes to imports there are two new major additions. The `imports_granularity` and `group_imports` options. Both mostly just incorporate unwritten rules that have existed in Alacritty for a long time. Unfortunately since `alacritty_terminal` imports in `alacritty` are supposed to be separate blocks, the `group_imports` option cannot be used.
Diffstat (limited to 'alacritty/src/logging.rs')
-rw-r--r--alacritty/src/logging.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/alacritty/src/logging.rs b/alacritty/src/logging.rs
index 7cef3887..8751c91e 100644
--- a/alacritty/src/logging.rs
+++ b/alacritty/src/logging.rs
@@ -4,13 +4,12 @@
//! startup. All logging messages are written to stdout, given that their
//! log-level is sufficient for the level configured in `cli::Options`.
-use std::env;
use std::fs::{File, OpenOptions};
use std::io::{self, LineWriter, Stdout, Write};
use std::path::PathBuf;
-use std::process;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::{Arc, Mutex};
+use std::{env, process};
use glutin::event_loop::EventLoopProxy;
use log::{self, Level, LevelFilter};