Keats / jsonwebtoken

JWT lib in rust
MIT License
1.69k stars 271 forks source link

Fix recursive Display::fmt implementation on Error to avoid stack overflow #117

Closed fujiapple852 closed 4 years ago

fujiapple852 commented 4 years ago

Invoking Error::to_string() results in a stack overflow for various error types. This is a simply fix to avoid the recursive call in Display::fmt.

Keats commented 4 years ago

Thanks!