Skip to content

Commit

Permalink
acceptor: fix nightly doc_overindented_list_items warns
Browse files Browse the repository at this point in the history
Of the form:
```
warning: doc list item overindented
   --> librustls/src/acceptor.rs:219:9
    |
219 |     ///      with rustls_accepted_into_connection.
    |         ^^^^^ help: try using `   ` (3 spaces)
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
    = note: `#[warn(clippy::doc_overindented_list_items)]` on by default
```
  • Loading branch information
cpu committed Feb 5, 2025
1 parent c9b1c88 commit 0743cb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions librustls/src/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl rustls_accepted {
/// - The SNI contains a NUL byte.
/// - The `accepted` parameter was NULL.
/// - The `accepted` parameter was already transformed into a connection
/// with rustls_accepted_into_connection.
/// with rustls_accepted_into_connection.
#[no_mangle]
pub extern "C" fn rustls_accepted_server_name(
accepted: *const rustls_accepted,
Expand Down Expand Up @@ -331,7 +331,7 @@ impl rustls_accepted {
/// - i is greater than the number of offered ALPN protocols.
/// - The client did not offer the ALPN extension.
/// - The `accepted` parameter was already transformed into a connection
/// with rustls_accepted_into_connection.
/// with rustls_accepted_into_connection.
///
/// The returned value is valid until rustls_accepted_into_connection or
/// rustls_accepted_free is called on the same `accepted`. It is not owned
Expand Down
4 changes: 2 additions & 2 deletions librustls/src/rustls.h
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ rustls_result rustls_acceptor_accept(struct rustls_acceptor *acceptor,
* - The SNI contains a NUL byte.
* - The `accepted` parameter was NULL.
* - The `accepted` parameter was already transformed into a connection
* with rustls_accepted_into_connection.
* with rustls_accepted_into_connection.
*/
struct rustls_str rustls_accepted_server_name(const struct rustls_accepted *accepted);

Expand Down Expand Up @@ -986,7 +986,7 @@ uint16_t rustls_accepted_cipher_suite(const struct rustls_accepted *accepted,
* - i is greater than the number of offered ALPN protocols.
* - The client did not offer the ALPN extension.
* - The `accepted` parameter was already transformed into a connection
* with rustls_accepted_into_connection.
* with rustls_accepted_into_connection.
*
* The returned value is valid until rustls_accepted_into_connection or
* rustls_accepted_free is called on the same `accepted`. It is not owned
Expand Down

0 comments on commit 0743cb1

Please sign in to comment.