From 0dd5a7ce1dbfed17c461e7616569072eb79d99d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesin=CC=81ski?= Date: Fri, 13 Mar 2020 12:35:20 +0000 Subject: [PATCH] std Error for BlockingError #93 --- actix-threadpool/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actix-threadpool/src/lib.rs b/actix-threadpool/src/lib.rs index beead547..08b563ef 100644 --- a/actix-threadpool/src/lib.rs +++ b/actix-threadpool/src/lib.rs @@ -48,6 +48,8 @@ pub enum BlockingError { Canceled, } +impl std::error::Error for BlockingError {} + /// Execute blocking function on a thread pool, returns future that resolves /// to result of the function execution. pub fn run(f: F) -> CpuFuture