[INFO] fetching crate rusty-swagger 0.1.1... [INFO] checking rusty-swagger-0.1.1 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate rusty-swagger 0.1.1 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate rusty-swagger 0.1.1 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rusty-swagger 0.1.1 [INFO] finished tweaking crates.io crate rusty-swagger 0.1.1 [INFO] tweaked toml for crates.io crate rusty-swagger 0.1.1 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate crates.io crate rusty-swagger 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-compression v0.3.2 [INFO] [stderr] Downloaded tokio v0.2.16 [INFO] [stderr] Downloaded mustache v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ddbc5cd55c5632a52bf7f4c11e57ac629903aa581f8982e1ba07e2b1fecc8878 [INFO] running `Command { std: "docker" "start" "-a" "ddbc5cd55c5632a52bf7f4c11e57ac629903aa581f8982e1ba07e2b1fecc8878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddbc5cd55c5632a52bf7f4c11e57ac629903aa581f8982e1ba07e2b1fecc8878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddbc5cd55c5632a52bf7f4c11e57ac629903aa581f8982e1ba07e2b1fecc8878", kill_on_drop: false }` [INFO] [stdout] ddbc5cd55c5632a52bf7f4c11e57ac629903aa581f8982e1ba07e2b1fecc8878 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 887656f34db711bdeefcb9a4c44de204e4f42b1db105bb33dc96a7847db7459f [INFO] running `Command { std: "docker" "start" "-a" "887656f34db711bdeefcb9a4c44de204e4f42b1db105bb33dc96a7847db7459f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking arc-swap v0.4.5 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Checking smallvec v1.3.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.22 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking dtoa v0.4.5 [INFO] [stderr] Checking linked-hash-map v0.5.2 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking yaml-rust v0.4.3 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking flate2 v1.0.14 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Compiling openssl-sys v0.9.55 [INFO] [stderr] Checking async-compression v0.3.2 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking regex v1.3.6 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking mustache v0.9.0 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Checking tokio v0.2.16 [INFO] [stderr] Checking pin-project v0.4.8 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.0 [INFO] [stderr] Checking h2 v0.2.4 [INFO] [stderr] Checking hyper v0.13.4 [INFO] [stderr] Checking hyper-tls v0.4.1 [INFO] [stderr] Checking reqwest v0.10.4 [INFO] [stderr] Checking rusty-swagger v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `innerProp` [INFO] [stdout] --> src/main.rs:124:40 [INFO] [stdout] | [INFO] [stdout] 124 | } else if let Yaml::String(innerProp) = &schema["schema"]["items"]["$ref"]{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_innerProp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addProp` [INFO] [stdout] --> src/main.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | let innerType = if let Yaml::String(addProp) = &schema["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_addProp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | for (k,v) in h { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `example` is assigned to, but never used [INFO] [stdout] --> src/main.rs:253:45 [INFO] [stdout] | [INFO] [stdout] 253 | ... let mut example = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_example` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `example` is never read [INFO] [stdout] --> src/main.rs:255:45 [INFO] [stdout] | [INFO] [stdout] 255 | ... example = String::from(val.as_str()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/main.rs:267:43 [INFO] [stdout] | [INFO] [stdout] 267 | if let Yaml::Hash(ref inner) = details["requestBody"] { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `responseNode` [INFO] [stdout] --> src/main.rs:278:48 [INFO] [stdout] | [INFO] [stdout] 278 | ... for (responseCode, responseNode) in inner { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_responseNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:290:48 [INFO] [stdout] | [INFO] [stdout] 290 | ... for (k,v) in innerMap { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fieldName` [INFO] [stdout] --> src/main.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 297 | ... let fieldName = "*"; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fieldName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inList` is never read [INFO] [stdout] --> src/main.rs:667:9 [INFO] [stdout] | [INFO] [stdout] 667 | inList = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:342:20 [INFO] [stdout] | [INFO] [stdout] 342 | for (k,v) in h { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `innerProp` [INFO] [stdout] --> src/main.rs:124:40 [INFO] [stdout] | [INFO] [stdout] 124 | } else if let Yaml::String(innerProp) = &schema["schema"]["items"]["$ref"]{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_innerProp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addProp` [INFO] [stdout] --> src/main.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | let innerType = if let Yaml::String(addProp) = &schema["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_addProp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | for (k,v) in h { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `example` is assigned to, but never used [INFO] [stdout] --> src/main.rs:253:45 [INFO] [stdout] | [INFO] [stdout] 253 | ... let mut example = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_example` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `example` is never read [INFO] [stdout] --> src/main.rs:255:45 [INFO] [stdout] | [INFO] [stdout] 255 | ... example = String::from(val.as_str()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/main.rs:267:43 [INFO] [stdout] | [INFO] [stdout] 267 | if let Yaml::Hash(ref inner) = details["requestBody"] { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `responseNode` [INFO] [stdout] --> src/main.rs:278:48 [INFO] [stdout] | [INFO] [stdout] 278 | ... for (responseCode, responseNode) in inner { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_responseNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:290:48 [INFO] [stdout] | [INFO] [stdout] 290 | ... for (k,v) in innerMap { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fieldName` [INFO] [stdout] --> src/main.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 297 | ... let fieldName = "*"; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fieldName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inList` is never read [INFO] [stdout] --> src/main.rs:667:9 [INFO] [stdout] | [INFO] [stdout] 667 | inList = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:342:20 [INFO] [stdout] | [INFO] [stdout] 342 | for (k,v) in h { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `required` [INFO] [stdout] --> src/main.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | pub fn required(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `apiVersion` should have a snake case name [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut apiVersion = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `api_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut fileName = String::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theDoc` should have a snake case name [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let theDoc = Documentation::new(doc); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `the_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn get_typeName(schema : & Yaml) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:121:49 [INFO] [stdout] | [INFO] [stdout] 121 | let innerType = if let Yaml::String(innerProp) = &schema["schema"]["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:124:40 [INFO] [stdout] | [INFO] [stdout] 124 | } else if let Yaml::String(innerProp) = &schema["schema"]["items"]["$ref"]{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theType` should have a snake case name [INFO] [stdout] --> src/main.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let theType = types.last().expect("no last element"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `the_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let innerType = if let Yaml::String(innerProp) = &schema["schema"]["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | let innerType = if let Yaml::String(addProp) = &schema["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theType` should have a snake case name [INFO] [stdout] --> src/main.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 137 | let theType = types.last().expect("no last element"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `the_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:139:40 [INFO] [stdout] | [INFO] [stdout] 139 | } else if let Yaml::String(addProp) = &schema["additionalProperties"]["type"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | let innerType = if let Yaml::String(addProp) = &schema["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theType` should have a snake case name [INFO] [stdout] --> src/main.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let theType = types.last().expect("no last element"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `the_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:185:49 [INFO] [stdout] | [INFO] [stdout] 185 | let innerType = if let Yaml::String(innerProp) = &prop["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:188:40 [INFO] [stdout] | [INFO] [stdout] 188 | } else if let Yaml::String(innerProp) = &prop["items"]["$ref"]{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let innerType = if let Yaml::String(innerProp) = &prop["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:197:49 [INFO] [stdout] | [INFO] [stdout] 197 | let innerType = if let Yaml::String(addProp) = &prop["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:199:40 [INFO] [stdout] | [INFO] [stdout] 199 | } else if let Yaml::String(addProp) = &prop["additionalProperties"]["type"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | let innerType = if let Yaml::String(addProp) = &prop["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `descriptionString` should have a snake case name [INFO] [stdout] --> src/main.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | let mut descriptionString = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `description_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theMethod` should have a snake case name [INFO] [stdout] --> src/main.rs:230:29 [INFO] [stdout] | [INFO] [stdout] 230 | let theMethod = method.as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `the_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:241:36 [INFO] [stdout] | [INFO] [stdout] 241 | ... let typeName = get_typeName(&entry).unwrap_or(String::from("unknown\\_type")); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:268:33 [INFO] [stdout] | [INFO] [stdout] 268 | ... let typeName = get_typeName(&details["requestBody"]["content"]["application/json"]).unwrap_or(String::from("unknown type")); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theField` should have a snake case name [INFO] [stdout] --> src/main.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | ... let theField = Field::new(String::from(""), typeName, details["requestBody"]["required"].as_bool().unwrap_or(false),markdown_to_lat... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `the_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseCode` should have a snake case name [INFO] [stdout] --> src/main.rs:278:34 [INFO] [stdout] | [INFO] [stdout] 278 | ... for (responseCode, responseNode) in inner { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `response_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseNode` should have a snake case name [INFO] [stdout] --> src/main.rs:278:48 [INFO] [stdout] | [INFO] [stdout] 278 | ... for (responseCode, responseNode) in inner { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `response_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:280:41 [INFO] [stdout] | [INFO] [stdout] 280 | ... let mut typeName = String::from(""); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseCodeString` should have a snake case name [INFO] [stdout] --> src/main.rs:281:37 [INFO] [stdout] | [INFO] [stdout] 281 | ... let responseCodeString = responseCode.as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_code_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerMap` should have a snake case name [INFO] [stdout] --> src/main.rs:289:55 [INFO] [stdout] | [INFO] [stdout] 289 | ... if let Yaml::Hash(innerMap) = &details["responses"][responseCodeString]["content"] { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `inner_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fieldName` should have a snake case name [INFO] [stdout] --> src/main.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 297 | ... let fieldName = "*"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theField` should have a snake case name [INFO] [stdout] --> src/main.rs:307:37 [INFO] [stdout] | [INFO] [stdout] 307 | ... let theField = Field::new(String::from(""), typeName, required,markdown_to_latex(details["responses"][responseCodeString]["descript... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `the_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `documentRoot` should have a snake case name [INFO] [stdout] --> src/main.rs:330:16 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn new(documentRoot : &Yaml) -> Documentation{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `document_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rootModels` should have a snake case name [INFO] [stdout] --> src/main.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | let rootModels = if documentRoot["components"]["schemas"].is_badvalue() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `root_models` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enumValues` should have a snake case name [INFO] [stdout] --> src/main.rs:344:25 [INFO] [stdout] | [INFO] [stdout] 344 | let mut enumValues = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `enum_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `propName` should have a snake case name [INFO] [stdout] --> src/main.rs:353:26 [INFO] [stdout] | [INFO] [stdout] 353 | for (propName, propNode) in inner { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prop_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `propNode` should have a snake case name [INFO] [stdout] --> src/main.rs:353:36 [INFO] [stdout] | [INFO] [stdout] 353 | for (propName, propNode) in inner { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prop_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fieldName` should have a snake case name [INFO] [stdout] --> src/main.rs:354:29 [INFO] [stdout] | [INFO] [stdout] 354 | let fieldName = shorten_type_name(&propName.as_str().unwrap().replace("_", "\\_")); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theField` should have a snake case name [INFO] [stdout] --> src/main.rs:365:29 [INFO] [stdout] | [INFO] [stdout] 365 | let theField = Field::new(fieldName,type_name,is_property_required,description, example); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `the_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enumName` should have a snake case name [INFO] [stdout] --> src/main.rs:369:25 [INFO] [stdout] | [INFO] [stdout] 369 | for enumName in inner { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enum_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `enumFields` should have a snake case name [INFO] [stdout] --> src/main.rs:526:5 [INFO] [stdout] | [INFO] [stdout] 526 | enumFields : Vec, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `enum_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enumFields` should have a snake case name [INFO] [stdout] --> src/main.rs:530:53 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn new (name : String, fields : Vec, enumFields : Vec) -> Schema { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `enum_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpOk` should have an upper case name [INFO] [stdout] --> src/main.rs:562:8 [INFO] [stdout] | [INFO] [stdout] 562 | static HttpOk : HttpStatus = HttpStatus::Status("200", "Success"); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `HTTP_OK` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpForbidden` should have an upper case name [INFO] [stdout] --> src/main.rs:563:8 [INFO] [stdout] | [INFO] [stdout] 563 | static HttpForbidden : HttpStatus = HttpStatus::Status("403", "Forbidden"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTTP_FORBIDDEN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpBadRequest` should have an upper case name [INFO] [stdout] --> src/main.rs:564:8 [INFO] [stdout] | [INFO] [stdout] 564 | static HttpBadRequest : HttpStatus = HttpStatus::Status("400", "Bad Request"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTTP_BAD_REQUEST` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpInternalServerError` should have an upper case name [INFO] [stdout] --> src/main.rs:565:8 [INFO] [stdout] | [INFO] [stdout] 565 | static HttpInternalServerError : HttpStatus = HttpStatus::Status("500", "Internal Server Error"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTTP_INTERNAL_SERVER_ERROR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `required` [INFO] [stdout] --> src/main.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | pub fn required(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newString` should have a snake case name [INFO] [stdout] --> src/main.rs:632:13 [INFO] [stdout] | [INFO] [stdout] 632 | let mut newString = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inList` should have a snake case name [INFO] [stdout] --> src/main.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let mut inList = false; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `in_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineLevelMatches` should have a snake case name [INFO] [stdout] --> src/main.rs:641:17 [INFO] [stdout] | [INFO] [stdout] 641 | let lineLevelMatches = line_level_regex.matches(line).into_iter().next(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `line_level_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `apiVersion` should have a snake case name [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut apiVersion = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `api_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut fileName = String::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theDoc` should have a snake case name [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let theDoc = Documentation::new(doc); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `the_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn get_typeName(schema : & Yaml) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:121:49 [INFO] [stdout] | [INFO] [stdout] 121 | let innerType = if let Yaml::String(innerProp) = &schema["schema"]["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:124:40 [INFO] [stdout] | [INFO] [stdout] 124 | } else if let Yaml::String(innerProp) = &schema["schema"]["items"]["$ref"]{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theType` should have a snake case name [INFO] [stdout] --> src/main.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let theType = types.last().expect("no last element"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `the_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let innerType = if let Yaml::String(innerProp) = &schema["schema"]["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | let innerType = if let Yaml::String(addProp) = &schema["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theType` should have a snake case name [INFO] [stdout] --> src/main.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 137 | let theType = types.last().expect("no last element"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `the_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:139:40 [INFO] [stdout] | [INFO] [stdout] 139 | } else if let Yaml::String(addProp) = &schema["additionalProperties"]["type"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | let innerType = if let Yaml::String(addProp) = &schema["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theType` should have a snake case name [INFO] [stdout] --> src/main.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let theType = types.last().expect("no last element"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `the_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:185:49 [INFO] [stdout] | [INFO] [stdout] 185 | let innerType = if let Yaml::String(innerProp) = &prop["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerProp` should have a snake case name [INFO] [stdout] --> src/main.rs:188:40 [INFO] [stdout] | [INFO] [stdout] 188 | } else if let Yaml::String(innerProp) = &prop["items"]["$ref"]{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let innerType = if let Yaml::String(innerProp) = &prop["items"]["type"] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:197:49 [INFO] [stdout] | [INFO] [stdout] 197 | let innerType = if let Yaml::String(addProp) = &prop["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addProp` should have a snake case name [INFO] [stdout] --> src/main.rs:199:40 [INFO] [stdout] | [INFO] [stdout] 199 | } else if let Yaml::String(addProp) = &prop["additionalProperties"]["type"] { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerType` should have a snake case name [INFO] [stdout] --> src/main.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | let innerType = if let Yaml::String(addProp) = &prop["additionalProperties"]["$ref"] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inner_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `descriptionString` should have a snake case name [INFO] [stdout] --> src/main.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | let mut descriptionString = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `description_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theMethod` should have a snake case name [INFO] [stdout] --> src/main.rs:230:29 [INFO] [stdout] | [INFO] [stdout] 230 | let theMethod = method.as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `the_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:241:36 [INFO] [stdout] | [INFO] [stdout] 241 | ... let typeName = get_typeName(&entry).unwrap_or(String::from("unknown\\_type")); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:268:33 [INFO] [stdout] | [INFO] [stdout] 268 | ... let typeName = get_typeName(&details["requestBody"]["content"]["application/json"]).unwrap_or(String::from("unknown type")); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theField` should have a snake case name [INFO] [stdout] --> src/main.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | ... let theField = Field::new(String::from(""), typeName, details["requestBody"]["required"].as_bool().unwrap_or(false),markdown_to_lat... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `the_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseCode` should have a snake case name [INFO] [stdout] --> src/main.rs:278:34 [INFO] [stdout] | [INFO] [stdout] 278 | ... for (responseCode, responseNode) in inner { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `response_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseNode` should have a snake case name [INFO] [stdout] --> src/main.rs:278:48 [INFO] [stdout] | [INFO] [stdout] 278 | ... for (responseCode, responseNode) in inner { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `response_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typeName` should have a snake case name [INFO] [stdout] --> src/main.rs:280:41 [INFO] [stdout] | [INFO] [stdout] 280 | ... let mut typeName = String::from(""); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseCodeString` should have a snake case name [INFO] [stdout] --> src/main.rs:281:37 [INFO] [stdout] | [INFO] [stdout] 281 | ... let responseCodeString = responseCode.as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_code_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `innerMap` should have a snake case name [INFO] [stdout] --> src/main.rs:289:55 [INFO] [stdout] | [INFO] [stdout] 289 | ... if let Yaml::Hash(innerMap) = &details["responses"][responseCodeString]["content"] { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `inner_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fieldName` should have a snake case name [INFO] [stdout] --> src/main.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 297 | ... let fieldName = "*"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theField` should have a snake case name [INFO] [stdout] --> src/main.rs:307:37 [INFO] [stdout] | [INFO] [stdout] 307 | ... let theField = Field::new(String::from(""), typeName, required,markdown_to_latex(details["responses"][responseCodeString]["descript... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `the_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `documentRoot` should have a snake case name [INFO] [stdout] --> src/main.rs:330:16 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn new(documentRoot : &Yaml) -> Documentation{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `document_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rootModels` should have a snake case name [INFO] [stdout] --> src/main.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | let rootModels = if documentRoot["components"]["schemas"].is_badvalue() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `root_models` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enumValues` should have a snake case name [INFO] [stdout] --> src/main.rs:344:25 [INFO] [stdout] | [INFO] [stdout] 344 | let mut enumValues = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `enum_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `propName` should have a snake case name [INFO] [stdout] --> src/main.rs:353:26 [INFO] [stdout] | [INFO] [stdout] 353 | for (propName, propNode) in inner { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prop_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `propNode` should have a snake case name [INFO] [stdout] --> src/main.rs:353:36 [INFO] [stdout] | [INFO] [stdout] 353 | for (propName, propNode) in inner { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prop_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fieldName` should have a snake case name [INFO] [stdout] --> src/main.rs:354:29 [INFO] [stdout] | [INFO] [stdout] 354 | let fieldName = shorten_type_name(&propName.as_str().unwrap().replace("_", "\\_")); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `theField` should have a snake case name [INFO] [stdout] --> src/main.rs:365:29 [INFO] [stdout] | [INFO] [stdout] 365 | let theField = Field::new(fieldName,type_name,is_property_required,description, example); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `the_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enumName` should have a snake case name [INFO] [stdout] --> src/main.rs:369:25 [INFO] [stdout] | [INFO] [stdout] 369 | for enumName in inner { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enum_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `enumFields` should have a snake case name [INFO] [stdout] --> src/main.rs:526:5 [INFO] [stdout] | [INFO] [stdout] 526 | enumFields : Vec, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `enum_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enumFields` should have a snake case name [INFO] [stdout] --> src/main.rs:530:53 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn new (name : String, fields : Vec, enumFields : Vec) -> Schema { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `enum_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpOk` should have an upper case name [INFO] [stdout] --> src/main.rs:562:8 [INFO] [stdout] | [INFO] [stdout] 562 | static HttpOk : HttpStatus = HttpStatus::Status("200", "Success"); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `HTTP_OK` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpForbidden` should have an upper case name [INFO] [stdout] --> src/main.rs:563:8 [INFO] [stdout] | [INFO] [stdout] 563 | static HttpForbidden : HttpStatus = HttpStatus::Status("403", "Forbidden"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTTP_FORBIDDEN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpBadRequest` should have an upper case name [INFO] [stdout] --> src/main.rs:564:8 [INFO] [stdout] | [INFO] [stdout] 564 | static HttpBadRequest : HttpStatus = HttpStatus::Status("400", "Bad Request"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTTP_BAD_REQUEST` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `HttpInternalServerError` should have an upper case name [INFO] [stdout] --> src/main.rs:565:8 [INFO] [stdout] | [INFO] [stdout] 565 | static HttpInternalServerError : HttpStatus = HttpStatus::Status("500", "Internal Server Error"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTTP_INTERNAL_SERVER_ERROR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newString` should have a snake case name [INFO] [stdout] --> src/main.rs:632:13 [INFO] [stdout] | [INFO] [stdout] 632 | let mut newString = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inList` should have a snake case name [INFO] [stdout] --> src/main.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let mut inList = false; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `in_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineLevelMatches` should have a snake case name [INFO] [stdout] --> src/main.rs:641:17 [INFO] [stdout] | [INFO] [stdout] 641 | let lineLevelMatches = line_level_regex.matches(line).into_iter().next(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `line_level_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "887656f34db711bdeefcb9a4c44de204e4f42b1db105bb33dc96a7847db7459f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "887656f34db711bdeefcb9a4c44de204e4f42b1db105bb33dc96a7847db7459f", kill_on_drop: false }` [INFO] [stdout] 887656f34db711bdeefcb9a4c44de204e4f42b1db105bb33dc96a7847db7459f