2 #![warn(clippy::missing_errors_doc)]
3 #![allow(clippy::result_unit_err)]
4 #![allow(clippy::unnecessary_wraps)]
8 pub fn pub_fn_missing_errors_header() -> Result<(), ()> {
12 pub async fn async_pub_fn_missing_errors_header() -> Result<(), ()> {
16 /// This is not sufficiently documented.
17 pub fn pub_fn_returning_io_result() -> io::Result<()> {
21 /// This is not sufficiently documented.
22 pub async fn async_pub_fn_returning_io_result() -> io::Result<()> {
27 /// A description of the errors goes here.
28 pub fn pub_fn_with_errors_header() -> Result<(), ()> {
33 /// A description of the errors goes here.
34 pub async fn async_pub_fn_with_errors_header() -> Result<(), ()> {
38 /// This function doesn't require the documentation because it is private
39 fn priv_fn_missing_errors_header() -> Result<(), ()> {
43 /// This function doesn't require the documentation because it is private
44 async fn async_priv_fn_missing_errors_header() -> Result<(), ()> {
51 /// This is not sufficiently documented.
52 pub fn pub_method_missing_errors_header() -> Result<(), ()> {
56 /// This is not sufficiently documented.
57 pub async fn async_pub_method_missing_errors_header() -> Result<(), ()> {
62 /// A description of the errors goes here.
63 pub fn pub_method_with_errors_header() -> Result<(), ()> {
68 /// A description of the errors goes here.
69 pub async fn async_pub_method_with_errors_header() -> Result<(), ()> {
73 /// This function doesn't require the documentation because it is private.
74 fn priv_method_missing_errors_header() -> Result<(), ()> {
78 /// This function doesn't require the documentation because it is private.
79 async fn async_priv_method_missing_errors_header() -> Result<(), ()> {
85 /// This is not sufficiently documented.
86 fn trait_method_missing_errors_header() -> Result<(), ()>;
89 /// A description of the errors goes here.
90 fn trait_method_with_errors_header() -> Result<(), ()>;
93 impl Trait1 for Struct1 {
94 fn trait_method_missing_errors_header() -> Result<(), ()> {
98 fn trait_method_with_errors_header() -> Result<(), ()> {
103 fn main() -> Result<(), ()> {