gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 709HTML 662Markdown 12TOML 62348 Definiciones

Change from Any error to Debug error

2202f15a1b8b517938cc196e1c0d1e88b8d7c505 · por Emil Sjölander · (hace 7 años) · padre 5441eb288 · ver el árbol en este commit

Delta semántico · 1

src/result.rs

  • cambió de firma type Result pub

2 archivos · +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>>;