main now returns Result

More recent rust allows returning Result so we can eliminate
our little wrapper
This commit is contained in:
Wez Furlong committed 2019-02-17 16:51:54 -08:00
1 parent 3302b3bb64
commit 02b684366e
1 file changed
+1 -5
+1 -5
View File
@@ -114,7 +114,7 @@ fn get_shell() -> Result<String, Error> {
// terminal.advance_bytes(message);
// !=
fn run() -> Result<(), Error> {
fn main() -> Result<(), Error> {
let args = App::new("wezterm")
.version("0.1")
.author("Wez Furlong <wez@wezfurlong.org>")
@@ -204,7 +204,3 @@ fn spawn_window(
event_loop.add_window(window)
}
fn main() {
run().unwrap();
}