Skip to content

Commit 34b11be

Browse files
committed
chore: 2024 edition
1 parent 7d6e8d2 commit 34b11be

File tree

3 files changed

+29
-28
lines changed

3 files changed

+29
-28
lines changed

Cargo.lock

Lines changed: 25 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = [ "Dan Sully" ]
33
categories = [ "command-line-utilities" ]
44
description = "An 'open' replacement that tries to do the right thing."
5-
edition = "2021"
5+
edition = "2024"
66
homepage = "https://github.com/dsully/magic-opener"
77
keywords = [ "git" ]
88
license = "MIT"

main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use std::env;
1616
use std::io::{stdout, Write};
1717
use std::net::TcpStream;
18+
use std::os::unix::process::CommandExt;
1819
use std::process::{self, Command, Stdio};
1920

2021
use clap::Parser;
@@ -133,9 +134,8 @@ fn main() {
133134
args.insert(0, "--background");
134135
}
135136

136-
Command::new(OPEN)
137+
let _ = Command::new(OPEN)
137138
.args(&args)
138-
.spawn()
139-
.expect("Failed to open URL");
139+
.exec();
140140
}
141141
}

0 commit comments

Comments
 (0)