indenter 0.3.3

A formatter wrapper that indents the text, designed for error display impls
Documentation
Build #353383 2021-02-22T22:27:32.575406+00:00
# rustc version
rustc 1.52.0-nightly (3e826bb11 2021-02-21)# docs.rs version
docsrs 0.6.0 (78d4fc1 2021-02-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/indenter-0.3.3/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/indenter-0.3.3/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "2" "--user" "1001:1001" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs\"" "-j2" "--" "--cfg" "docsrs" "-Z" "unstable-options" "--resource-suffix" "-20210221-1.52.0-nightly-3e826bb11" "--static-root-path" "/" "--cap-lints" "warn" "--disable-per-crate-search", kill_on_drop: false }`
[INFO] [stdout] 0fb28ddf1887b128bf4397472f697bbec773a385f2e119e7ccc3070dd4fe0881
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "0fb28ddf1887b128bf4397472f697bbec773a385f2e119e7ccc3070dd4fe0881", kill_on_drop: false }`
[INFO] [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied
[INFO] [stderr]  Documenting indenter v0.3.3 (/opt/rustwide/workdir)
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:119:1
[INFO] [stderr]     |
[INFO] [stderr] 119 | /// The set of supported formats for indentation
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] note: the lint level is defined here
[INFO] [stderr]    --> src/lib.rs:97:5
[INFO] [stderr]     |
[INFO] [stderr] 97  |     missing_doc_code_examples,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:146:1
[INFO] [stderr]     |
[INFO] [stderr] 146 | / /// Helper struct for efficiently indenting multi line display implementations
[INFO] [stderr] 147 | | ///
[INFO] [stderr] 148 | | /// # Explanation
[INFO] [stderr] 149 | | ///
[INFO] [stderr] ...   |
[INFO] [stderr] 153 | | /// splits on newlines giving slices into the original string. Finally we alternate writing these
[INFO] [stderr] 154 | | /// lines and the specified indentation to the output buffer.
[INFO] [stderr]     | |_____________________________________________________________^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:167:1
[INFO] [stderr]     |
[INFO] [stderr] 167 | / impl Format<'_> {
[INFO] [stderr] 168 | |     fn insert_indentation(&mut self, line: usize, f: &mut dyn fmt::Write) -> fmt::Result {
[INFO] [stderr] 169 | |         match self {
[INFO] [stderr] 170 | |             Format::Uniform { indentation } => write!(f, "{}", indentation),
[INFO] [stderr] ...   |
[INFO] [stderr] 180 | |     }
[INFO] [stderr] 181 | | }
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:168:5
[INFO] [stderr]     |
[INFO] [stderr] 168 | /     fn insert_indentation(&mut self, line: usize, f: &mut dyn fmt::Write) -> fmt::Result {
[INFO] [stderr] 169 | |         match self {
[INFO] [stderr] 170 | |             Format::Uniform { indentation } => write!(f, "{}", indentation),
[INFO] [stderr] 171 | |             Format::Numbered { ind } => {
[INFO] [stderr] ...   |
[INFO] [stderr] 179 | |         }
[INFO] [stderr] 180 | |     }
[INFO] [stderr]     | |_____^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:183:1
[INFO] [stderr]     |
[INFO] [stderr] 183 | / impl<'a, D> Indented<'a, D> {
[INFO] [stderr] 184 | |     /// Sets the format to `Format::Numbered` with the provided index
[INFO] [stderr] 185 | |     pub fn ind(self, ind: usize) -> Self {
[INFO] [stderr] 186 | |         self.with_format(Format::Numbered { ind })
[INFO] [stderr] ...   |
[INFO] [stderr] 198 | |     }
[INFO] [stderr] 199 | | }
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:184:5
[INFO] [stderr]     |
[INFO] [stderr] 184 |     /// Sets the format to `Format::Numbered` with the provided index
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:189:5
[INFO] [stderr]     |
[INFO] [stderr] 189 |     /// Sets the format to `Format::Uniform` with the provided static string
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:194:5
[INFO] [stderr]     |
[INFO] [stderr] 194 |     /// Construct an indenter with a user defined format
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:229:1
[INFO] [stderr]     |
[INFO] [stderr] 229 | /// Helper function for creating a default indenter
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:240:1
[INFO] [stderr]     |
[INFO] [stderr] 240 | / /// Helper struct for efficiently dedent and indent multi line display implementations
[INFO] [stderr] 241 | | ///
[INFO] [stderr] 242 | | /// # Explanation
[INFO] [stderr] 243 | | ///
[INFO] [stderr] 244 | | /// This type allocates a string once to get the formatted result and then uses the internal
[INFO] [stderr] 245 | | /// formatter efficiently to: first dedent the output, then re-indent to the desired level.
[INFO] [stderr]     | |___________________________________________________________________________________________^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:295:1
[INFO] [stderr]     |
[INFO] [stderr] 295 | / impl<'a, T: fmt::Write> CodeFormatter<'a, T> {
[INFO] [stderr] 296 | |     /// Wrap the formatter `f`, use `indentation` as base string indentation and return a new
[INFO] [stderr] 297 | |     /// formatter that implements `std::fmt::Write` that can be used with the macro `write!()`
[INFO] [stderr] 298 | |     pub fn new<S: Into<String>>(f: &'a mut T, indentation: S) -> Self {
[INFO] [stderr] ...   |
[INFO] [stderr] 319 | |     }
[INFO] [stderr] 320 | | }
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:296:5
[INFO] [stderr]     |
[INFO] [stderr] 296 | /     /// Wrap the formatter `f`, use `indentation` as base string indentation and return a new
[INFO] [stderr] 297 | |     /// formatter that implements `std::fmt::Write` that can be used with the macro `write!()`
[INFO] [stderr]     | |______________________________________________________________________________________________^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:306:5
[INFO] [stderr]     |
[INFO] [stderr] 306 |     /// Set the indentation level to a specific value
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:311:5
[INFO] [stderr]     |
[INFO] [stderr] 311 |     /// Increase the indentation level by `inc`
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:316:5
[INFO] [stderr]     |
[INFO] [stderr] 316 |     /// Decrease the indentation level by `inc`
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:201:1
[INFO] [stderr]     |
[INFO] [stderr] 201 | / impl<T> fmt::Write for Indented<'_, T>
[INFO] [stderr] 202 | | where
[INFO] [stderr] 203 | |     T: fmt::Write + ?Sized,
[INFO] [stderr] 204 | | {
[INFO] [stderr] ...   |
[INFO] [stderr] 226 | |     }
[INFO] [stderr] 227 | | }
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:205:5
[INFO] [stderr]     |
[INFO] [stderr] 205 | /     fn write_str(&mut self, s: &str) -> fmt::Result {
[INFO] [stderr] 206 | |         for (ind, line) in s.split('\n').enumerate() {
[INFO] [stderr] 207 | |             if ind > 0 {
[INFO] [stderr] 208 | |                 self.inner.write_char('\n')?;
[INFO] [stderr] ...   |
[INFO] [stderr] 225 | |         Ok(())
[INFO] [stderr] 226 | |     }
[INFO] [stderr]     | |_____^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:255:1
[INFO] [stderr]     |
[INFO] [stderr] 255 | / impl<'a, T: fmt::Write> fmt::Write for CodeFormatter<'a, T> {
[INFO] [stderr] 256 | |     fn write_str(&mut self, input: &str) -> fmt::Result {
[INFO] [stderr] 257 | |         let input = match input.chars().next() {
[INFO] [stderr] 258 | |             Some('\n') => &input[1..],
[INFO] [stderr] ...   |
[INFO] [stderr] 291 | |     }
[INFO] [stderr] 292 | | }
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:256:5
[INFO] [stderr]     |
[INFO] [stderr] 256 | /     fn write_str(&mut self, input: &str) -> fmt::Result {
[INFO] [stderr] 257 | |         let input = match input.chars().next() {
[INFO] [stderr] 258 | |             Some('\n') => &input[1..],
[INFO] [stderr] 259 | |             _ => return self.f.write_str(input),
[INFO] [stderr] ...   |
[INFO] [stderr] 286 | |         Ok(())
[INFO] [stderr] 287 | |     }
[INFO] [stderr]     | |_____^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:289:5
[INFO] [stderr]     |
[INFO] [stderr] 289 | /     fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> fmt::Result {
[INFO] [stderr] 290 | |         self.write_str(&args.to_string())
[INFO] [stderr] 291 | |     }
[INFO] [stderr]     | |_____^
[INFO] [stderr] 
[INFO] [stderr] warning: 20 warnings emitted
[INFO] [stderr] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1.67s
[INFO] running `Command { std: "docker" "inspect" "0fb28ddf1887b128bf4397472f697bbec773a385f2e119e7ccc3070dd4fe0881", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0fb28ddf1887b128bf4397472f697bbec773a385f2e119e7ccc3070dd4fe0881", kill_on_drop: false }`
[INFO] [stdout] 0fb28ddf1887b128bf4397472f697bbec773a385f2e119e7ccc3070dd4fe0881