diff options
author | edef <edef@unfathomable.blue> | 2022-02-07 23:34:34 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-02-07 23:34:34 +0000 |
commit | 39ac8aee29fc34656b79617018d5250a50c96404 (patch) | |
tree | 32b084fd18f8491eb32b0e2dfc10dc95aaa0d556 /ripple/minitrace/src | |
parent | 408bd67facd69841faec42914a7d990f93d6523b (diff) | |
download | unf-legacy-39ac8aee29fc34656b79617018d5250a50c96404.tar.zst |
ripple/minitrace: use anyhow::Result unqualified
Result<T, E> keeps the same meaning, so there's no need to qualify it. Change-Id: I22872860ff18e75c01be01e0d4c8030bfc4133bb
Diffstat (limited to 'ripple/minitrace/src')
-rw-r--r-- | ripple/minitrace/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index b8d6eee..f015bf9 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -2,7 +2,7 @@ // SPDX-License-Identifier: OSL-3.0 use { - anyhow::{bail, Context}, + anyhow::{bail, Context, Result}, nix::{ libc, sys::{ @@ -42,7 +42,7 @@ struct Process { } impl Process { - fn spawn(cmd: &mut Command) -> anyhow::Result<Process> { + fn spawn(cmd: &mut Command) -> Result<Process> { unsafe { cmd.pre_exec(|| { // disable ASLR @@ -93,7 +93,7 @@ enum EntryExit { Exit(SyscallEntry, i64), } -fn main() -> anyhow::Result<()> { +fn main() -> Result<()> { let process = Process::spawn(&mut { let mut args = env::args(); |