Skip to content

Commit

Permalink
Fix clippy::doc_lazy_continuation warning
Browse files Browse the repository at this point in the history
```
error: doc list item missing indentation
   --> src/lib.rs:174:5
    |
174 | /// does not already exist and it could not be created otherwise. The specific
    |     ^
    |
    = help: if this is supposed to be its own paragraph, add a blank line
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
    = note: `-D clippy::doc-lazy-continuation` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::doc_lazy_continuation)]`
help: indent this line
    |
174 | ///   does not already exist and it could not be created otherwise. The specific
    |     ++

error: doc list item missing indentation
   --> src/lib.rs:175:5
    |
175 | /// error conditions for when a directory is being created (after it is
    |     ^
    |
    = help: if this is supposed to be its own paragraph, add a blank line
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
    |
175 | ///   error conditions for when a directory is being created (after it is
    |     ++

error: doc list item missing indentation
   --> src/lib.rs:176:5
    |
176 | /// determined to not exist) are outlined by [`fs::create_dir`].
    |     ^
    |
    = help: if this is supposed to be its own paragraph, add a blank line
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
    |
176 | ///   determined to not exist) are outlined by [`fs::create_dir`].
    |     ++
```
  • Loading branch information
taiki-e committed Aug 5, 2024
1 parent fd34b89 commit 1cff2a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ pub async fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
/// limited to just these cases:
///
/// * If any directory in the path specified by `path`
/// does not already exist and it could not be created otherwise. The specific
/// error conditions for when a directory is being created (after it is
/// determined to not exist) are outlined by [`fs::create_dir`].
/// does not already exist and it could not be created otherwise. The specific
/// error conditions for when a directory is being created (after it is
/// determined to not exist) are outlined by [`fs::create_dir`].
///
/// Notable exception is made for situations where any of the directories
/// specified in the `path` could not be created as it was being created concurrently.
Expand Down

0 comments on commit 1cff2a0

Please sign in to comment.