Builditluc / wiki-tui

A simple and easy to use Wikipedia Text User Interface
https://wiki-tui.net/
MIT License
416 stars 14 forks source link

Stack Overflow when trying to display certain Namespaces #197

Closed Builditluc closed 1 year ago

Builditluc commented 1 year ago

When trying to fmt::display a Namespace the program crashes with an stack overflow.

The crash occurs when trying to open a link leading to those namespaces but the following test reproduces the error more quickly

#[test]
fn test_namespace_display() {
    eprintln!("{}", Namespace::Category);
}

EDIT: This crash occurrs with all namespaces

Builditluc commented 1 year ago

The issue does not occurr when using fmt::Debug