Stack overflow when attempting to display error types. #15

Closed
opened 2021-09-16 07:29:47 +12:00 by mobile-bungalow · 4 comments
mobile-bungalow commented 2021-09-16 07:29:47 +12:00 (Migrated from github.com)

It appears that your Display implementation calls itself recursively forever.

reproduce with:

     #[test]
     fn display_error() {
         let custom_error = std::io::Error::new(std::io::ErrorKind::Other, "oh no!");
         println!("{}", Error::Io(custom_error));
     }
    
It appears that your `Display` implementation calls itself recursively forever. reproduce with: ```Rust use crate::error::Error; #[test] fn display_error() { let custom_error = std::io::Error::new(std::io::ErrorKind::Other, "oh no!"); println!("{}", Error::Io(custom_error)); }
mikedilger commented 2021-09-16 07:56:57 +12:00 (Migrated from github.com)

Well that's embarrassing. I'll take a look.

Well that's embarrassing. I'll take a look.
mikedilger commented 2021-09-16 08:07:23 +12:00 (Migrated from github.com)

Fixed in f2cba9e1c9

Fixed in f2cba9e1c93c9296e6115b8633ff1dcea69098c5
djoyner commented 2023-08-24 04:44:44 +12:00 (Migrated from github.com)

This is a critical fix. Any chance it could be merged into the 0.6 branch and released as 0.6.2?

This is a critical fix. Any chance it could be merged into the `0.6` branch and released as `0.6.2`?
mikedilger commented 2023-08-25 09:26:53 +12:00 (Migrated from github.com)

This was merged and released in 0.6.1

This was merged and released in `0.6.1`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mikedilger/mime-multipart#15
No description provided.