main now returns Result
More recent rust allows returning Result so we can eliminate our little wrapper
This commit is contained in:
1 parent
3302b3bb64
commit
02b684366e
1 file changed
+1
-5
+1
-5
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user