rust-unofficial/patterns

Add double panic mentioning for RAII guards

Open

#327 opened on Nov 27, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Shell (6,622 stars) (292 forks)batch import
A-patternC-amendmentgood first issue

Description

I think it would be nice to mention that one should be careful when writing drop implementations on guards relatively to the double panic possibility when they find out about this pattern for the first time or are unaware of double panicking generally.

It might help someone inexperienced I suppose.

Contributor guide

Add double panic mentioning for RAII guards · rust-unofficial/patterns#327 | Good First Issue