rustfmt
This commit is contained in:
1 parent
d7b55382b4
commit
b02a6e076c
3 files changed
+5
-16
No files matched your search
@@ -143,12 +143,7 @@ impl GuiSystem for GlutinGuiSystem {
|
||||
fontconfig: &Rc<crate::font::FontConfiguration>,
|
||||
tab: &Rc<Tab>,
|
||||
) -> Result<(), Error> {
|
||||
let window = GliumTerminalWindow::new(
|
||||
&self.event_loop,
|
||||
fontconfig,
|
||||
config,
|
||||
tab,
|
||||
)?;
|
||||
let window = GliumTerminalWindow::new(&self.event_loop, fontconfig, config, tab)?;
|
||||
|
||||
self.event_loop.add_window(window)
|
||||
}
|
||||
@@ -197,7 +192,7 @@ impl GuiEventLoop {
|
||||
let tab = spawn_tab(&config, None)?;
|
||||
let sender = Box::new(events.poll_tx.clone());
|
||||
events.mux.add_tab(sender, &tab)?;
|
||||
let window = GliumTerminalWindow::new( &events, &fonts, &config, &tab)?;
|
||||
let window = GliumTerminalWindow::new(&events, &fonts, &config, &tab)?;
|
||||
|
||||
events.add_window(window)
|
||||
}
|
||||
|
||||
+2
-7
@@ -1,7 +1,7 @@
|
||||
use crate::config::Config;
|
||||
use crate::font::FontConfiguration;
|
||||
use crate::futurecore;
|
||||
use crate::guicommon::tabs::{Tab };
|
||||
use crate::guicommon::tabs::Tab;
|
||||
use crate::guicommon::window::TerminalWindow;
|
||||
use crate::guiloop::GuiSystem;
|
||||
use crate::mux::{Mux, PtyEvent, PtyEventSender};
|
||||
@@ -82,12 +82,7 @@ impl super::GuiSystem for X11GuiSystem {
|
||||
fontconfig: &Rc<FontConfiguration>,
|
||||
tab: &Rc<Tab>,
|
||||
) -> Result<(), Error> {
|
||||
let window = X11TerminalWindow::new(
|
||||
&self.event_loop,
|
||||
fontconfig,
|
||||
config,
|
||||
tab,
|
||||
)?;
|
||||
let window = X11TerminalWindow::new(&self.event_loop, fontconfig, config, tab)?;
|
||||
|
||||
self.event_loop.add_window(window)
|
||||
}
|
||||
|
||||
+1
-2
@@ -83,8 +83,7 @@ impl<'a> TerminalHost for Host<'a> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn set_title(&mut self, _title: &str) {
|
||||
}
|
||||
fn set_title(&mut self, _title: &str) {}
|
||||
}
|
||||
|
||||
impl Mux {
|
||||
|
||||
Reference in new issue
Block a user