From 39ac8aee29fc34656b79617018d5250a50c96404 Mon Sep 17 00:00:00 2001 From: edef Date: Mon, 7 Feb 2022 23:34:34 +0000 Subject: ripple/minitrace: use anyhow::Result unqualified Result keeps the same meaning, so there's no need to qualify it. Change-Id: I22872860ff18e75c01be01e0d4c8030bfc4133bb --- ripple/minitrace/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ripple/minitrace/src') 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 { + fn spawn(cmd: &mut Command) -> Result { 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(); -- cgit 1.4.1