futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
370 stars 22 forks source link

Panic with display #30

Closed futursolo closed 2 years ago

futursolo commented 3 years ago

Currently there's a fair amount of panic based behaviour in stylist.

Panicking with unwrap or expect outputs {:?} by default which is not very friendly.

This issue aims to implement a trait on Result<T> that when unwrapped the Error is printed with {} (Display).