tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 709HTML 662Markdown 12TOML 62348 Definitions

Change from Any error to Debug error

3c89b984ad68dffed0b747aa6e3b12efe989b647 · by Emil Sjölander · (7 years ago) · parent 65c88549f · browse the tree at this commit

Semantic delta · 1

src/result.rs

  • signature changed type Result pub

2 files · +3 −3

diff --git a/Cargo.toml b/Cargo.toml
index 2b1bdbf3a..a0cc942ef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "stretch"
-version = "0.1.10"
+version = "0.1.11"
 authors = ["Emil Sjölander <emil@visly.app>"]
 edition = "2018"
 include = ["src/**/*", "Cargo.toml"]
diff --git a/src/result.rs b/src/result.rs
index c5d2510ad..add707159 100644
--- a/src/result.rs
+++ b/src/result.rs
@@ -1,3 +1,3 @@
-use core::any::Any;
+use core::fmt::Debug;
 
-pub type Result<T> = core::result::Result<T, Box<Any>>;
+pub type Result<T> = core::result::Result<T, Box<Debug>>;