Skip to content

Commit 1e9994d

Browse files
r3dlighthg-anssi
authored andcommitted
Remove old/obsolete rule about try! macro
1 parent e4c4c03 commit 1e9994d

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/en/errors.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ It MUST be careful to make this type exception-safe (RFC 1236), and implement
1313

1414
</div>
1515

16-
<div class="reco" id="LANG-ERRDO" type="Rule" title="Use the `?` operator and do not use the `try!` macro">
17-
18-
The `?` operator MUST be used to improve readability of code.
19-
The `try!` macro MUST NOT be used.
20-
21-
</div>
22-
2316
Third-party crates may be used to facilitate error handling. Most of them
2417
(notably [snafu] or [thiserror]) address the creation of new custom
2518
error types that implement the necessary traits and allow wrapping other

src/fr/errors.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ ce type DOIT être *exception-safe* (RFC 1236) et implémenter les traits
1717

1818
</div>
1919

20-
<div class="reco" id="LANG-ERRDO" type="Règle" title="Utilisation de l'opérateur `?` et non-utilisation de la macro `try!`">
21-
22-
L'opérateur `?` DOIT être utilisé pour améliorer la lisibilité du code.
23-
La macro `try!` NE DOIT PAS être utilisée.
24-
25-
</div>
26-
2720
Des *crates* tierces peuvent être utilisées pour faciliter la gestion d'erreurs.
2821
La plupart ([snafu], [thiserror]) proposent la création de types
2922
d'erreurs personnalisées qui implémentent les traits nécessaires et permettent

0 commit comments

Comments
 (0)