Skip to content

Commit 294c550

Browse files
committed
Format code
1 parent 4e496f5 commit 294c550

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/backend/alacritty.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ impl Functions for Alacritty {
146146
// See https://github.com/neovim/neovim/issues/11330
147147
#[cfg(target_os = "linux")]
148148
fn post_start(&mut self, config: &Config, term_pid: Pid) {
149-
let proc_name = match Path::new(&config.nvim_exe_path)
150-
.file_name()
151-
{
149+
let proc_name = match Path::new(&config.nvim_exe_path).file_name() {
152150
None => {
153151
log::warn!(
154152
"Cannot identify executable name from '{}'",

src/backend/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
mod alacritty;
2+
mod foot;
23
mod kitty;
34
mod urxvt;
45
mod wezterm;
5-
mod foot;
66
use super::config::Config;
77
use crate::config::Backend;
88
use crate::error::GlrnvimError;
@@ -13,16 +13,15 @@ extern crate shellexpand;
1313

1414
pub trait Functions {
1515
fn create_command(&mut self, config: &Config) -> std::process::Command;
16-
fn post_start(&mut self, _config: &Config, _term_pid: Pid) {
17-
}
16+
fn post_start(&mut self, _config: &Config, _term_pid: Pid) {}
1817
}
1918

2019
#[cfg(not(target_os = "windows"))]
2120
const COMMON_ARGS: &[&str] = &[
2221
"--cmd",
2322
"set termguicolors", // Enable 24-bits colors
2423
"--cmd",
25-
"set title", // Set title string
24+
"set title", // Set title string
2625
"--cmd",
2726
"let g:glrnvim_gui=1",
2827
];
@@ -31,7 +30,7 @@ const COMMON_ARGS: &[&str] = &[
3130
"\"--cmd\"",
3231
"\"set termguicolors\"", // Enable 24-bits colors
3332
"\"--cmd\"",
34-
"\"set title\"", // Set title string
33+
"\"set title\"", // Set title string
3534
"\"--cmd\"",
3635
"\"let g:glrnvim_gui=1\"",
3736
];

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use std::env;
1111
use std::process::Command;
1212
use sysinfo::Pid;
1313

14-
1514
const DEFAULT_FONT_SIZE: u8 = 12;
1615

1716
const VERSION: &str = env!("CARGO_PKG_VERSION");
@@ -137,7 +136,9 @@ fn show_help() {
137136
conf_dir.push("glrnvim");
138137
conf_dir.push("config.yml");
139138
println!("\nConfig file: {}", conf_dir.display());
140-
println!("See https://github.com/beeender/glrnvim/blob/master/glrnvim.yml for example.");
139+
println!(
140+
"See https://github.com/beeender/glrnvim/blob/master/glrnvim.yml for example."
141+
);
141142
}
142143
None => {
143144
println!("\nConfig file: Cannot identify the current config directory. No config file can be loaded.");

0 commit comments

Comments
 (0)