From b22fc8cd9a24bbba0914974a22f4e35103a44834 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 10 May 2024 08:32:43 +0300 Subject: refactor(tvix/castore/error): drop From> for Error We don't produce these erorrs anymore, no need to provide a conversion to it. Change-Id: I37933e436ad15c5d90b3ac270c4ef5742980513d Reviewed-on: https://cl.tvl.fyi/c/depot/+/11614 Reviewed-by: Connor Brewster Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/castore/src/errors.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tvix/castore/src/errors.rs') diff --git a/tvix/castore/src/errors.rs b/tvix/castore/src/errors.rs index e807a19b9e61..8343d0774aec 100644 --- a/tvix/castore/src/errors.rs +++ b/tvix/castore/src/errors.rs @@ -1,4 +1,3 @@ -use std::sync::PoisonError; use thiserror::Error; use tokio::task::JoinError; use tonic::Status; @@ -13,12 +12,6 @@ pub enum Error { StorageError(String), } -impl From> for Error { - fn from(value: PoisonError) -> Self { - Error::StorageError(value.to_string()) - } -} - impl From for Error { fn from(value: JoinError) -> Self { Error::StorageError(value.to_string()) -- cgit 1.4.1