We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30ff9f commit fbbfb6dCopy full SHA for fbbfb6d
surface-dtx-daemon/src/logic/proc.rs
@@ -24,7 +24,7 @@ enum ExitStatus {
24
}
25
26
impl ExitStatus {
27
- fn to_str(&self) -> &'static str {
+ fn as_str(&self) -> &'static str {
28
match self {
29
Self::Commence => "0",
30
Self::Abort => "1",
@@ -93,8 +93,8 @@ impl Adapter for ProcessAdapter {
93
// run handler
94
let output = Command::new(path)
95
.current_dir(dir)
96
- .env("EXIT_DETACH_COMMENCE", ExitStatus::Commence.to_str())
97
- .env("EXIT_DETACH_ABORT", ExitStatus::Abort.to_str())
+ .env("EXIT_DETACH_COMMENCE", ExitStatus::Commence.as_str())
+ .env("EXIT_DETACH_ABORT", ExitStatus::Abort.as_str())
98
.kill_on_drop(true)
99
.output().await
100
.context("Subprocess error (detachment)")?;
0 commit comments