From dcdc7d0411b724e3b5cfe35830f426f585c63c43 Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 20 Apr 2022 19:02:00 +0000 Subject: ripple/fossil: prefer anyhow::Result over io::Result Change-Id: I4a94b84ef456b427422757a899fdce6198fd01a1 --- ripple/fossil/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ripple/fossil/src') diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs index 9e380f2..8858196 100644 --- a/ripple/fossil/src/lib.rs +++ b/ripple/fossil/src/lib.rs @@ -2,6 +2,7 @@ // SPDX-License-Identifier: OSL-3.0 use { + anyhow::Result, byteorder::{BigEndian, ByteOrder}, prost::Message, std::{ @@ -26,7 +27,7 @@ pub struct Store { } impl Store { - pub fn open(path: impl AsRef) -> io::Result { + pub fn open(path: impl AsRef) -> Result { let db = sled::open(path)?; Ok(Store { db }) } -- cgit 1.4.1