teloxide/dptree

Make crate never panic

Closed this issue · 5 comments

Is it possible to remove panics from crate at all?
Also may be useful to try using no_panic! macro.

This is not descriptive enough. What is the problem you are trying to solve.

Currently dptree crate may panic, at least in case of dependency management. Usually I cover my code with no_panic! macro, as guarantee. I want to check, is it possible to turn all dptree crate possible errors into compile-time, which makes no panic guarantee possible to be applied.

I want to check, is it possible to turn all dptree crate possible errors into compile-time

No, currently you can't check if a type is in a list of types at compile time.

I want to check, is it possible to turn all dptree crate possible errors into compile-time

No, currently you can't check if a type is in a list of types at compile time.

Kinda sad. Thanks for answers!

There is a plan to move panics to initialization, so if your app started, then it won't panic anymore. #23 implements this.