{"$message_type":"diagnostic","message":"docs for function which may panic missing `# Panics` section","code":{"code":"clippy::missing_panics_doc","explanation":null},"level":"warning","spans":[{"file_name":"src/doc_ng/document.rs","byte_start":4051,"byte_end":4088,"line_start":104,"line_end":104,"column_start":5,"column_end":42,"is_primary":true,"text":[{"text":"    pub fn content_hash(&self) -> DocHash {","highlight_start":5,"highlight_end":42}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"first possible panic found here","code":null,"level":"note","spans":[{"file_name":"src/doc_ng/document.rs","byte_start":4419,"byte_end":4885,"line_start":111,"line_end":125,"column_start":9,"column_end":54,"is_primary":true,"text":[{"text":"        serde_json::to_writer(","highlight_start":9,"highlight_end":31},{"text":"            &mut hasher,","highlight_start":1,"highlight_end":25},{"text":"            &(","highlight_start":1,"highlight_end":15},{"text":"                self.rev,","highlight_start":1,"highlight_end":26},{"text":"                &self.name,","highlight_start":1,"highlight_end":28},{"text":"                sorted(&self.blocks),","highlight_start":1,"highlight_end":38},{"text":"                sorted(&self.pins),","highlight_start":1,"highlight_end":36},{"text":"                sorted(&self.routes),","highlight_start":1,"highlight_end":38},{"text":"                sorted(&self.route_labels),","highlight_start":1,"highlight_end":44},{"text":"                sorted(&self.texts),","highlight_start":1,"highlight_end":37},{"text":"                sorted(&self.comments),","highlight_start":1,"highlight_end":40},{"text":"                sorted(&self.images),","highlight_start":1,"highlight_end":38},{"text":"            ),","highlight_start":1,"highlight_end":15},{"text":"        )","highlight_start":1,"highlight_end":10},{"text":"        .expect(\"the document serializes infallibly\");","highlight_start":1,"highlight_end":54}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#missing_panics_doc","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`-W clippy::missing-panics-doc` implied by `-W clippy::pedantic`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"to override `-W clippy::pedantic` add `#[allow(clippy::missing_panics_doc)]`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: docs for function which may panic missing `# Panics` section\u001b[0m\n   \u001b[1m\u001b[94m--> \u001b[0msrc/doc_ng/document.rs:104:5\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m104\u001b[0m \u001b[1m\u001b[94m|\u001b[0m     pub fn content_hash(&self) -> DocHash {\n    \u001b[1m\u001b[94m|\u001b[0m     \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: first possible panic found here\n   \u001b[1m\u001b[94m--> \u001b[0msrc/doc_ng/document.rs:111:9\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m111\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m/\u001b[0m         serde_json::to_writer(\n\u001b[1m\u001b[94m112\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m|\u001b[0m             &mut hasher,\n\u001b[1m\u001b[94m113\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m|\u001b[0m             &(\n\u001b[1m\u001b[94m114\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m|\u001b[0m                 self.rev,\n\u001b[1m\u001b[94m...\u001b[0m   \u001b[1m\u001b[92m|\u001b[0m\n\u001b[1m\u001b[94m125\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m|\u001b[0m         .expect(\"the document serializes infallibly\");\n    \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m|_____________________________________________________^\u001b[0m\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#missing_panics_doc\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `-W clippy::missing-panics-doc` implied by `-W clippy::pedantic`\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: to override `-W clippy::pedantic` add `#[allow(clippy::missing_panics_doc)]`\n\n"}
{"$message_type":"diagnostic","message":"used `expect()` on a `Result` value","code":{"code":"clippy::expect_used","explanation":null},"level":"warning","spans":[{"file_name":"src/doc_ng/document.rs","byte_start":4419,"byte_end":4885,"line_start":111,"line_end":125,"column_start":9,"column_end":54,"is_primary":true,"text":[{"text":"        serde_json::to_writer(","highlight_start":9,"highlight_end":31},{"text":"            &mut hasher,","highlight_start":1,"highlight_end":25},{"text":"            &(","highlight_start":1,"highlight_end":15},{"text":"                self.rev,","highlight_start":1,"highlight_end":26},{"text":"                &self.name,","highlight_start":1,"highlight_end":28},{"text":"                sorted(&self.blocks),","highlight_start":1,"highlight_end":38},{"text":"                sorted(&self.pins),","highlight_start":1,"highlight_end":36},{"text":"                sorted(&self.routes),","highlight_start":1,"highlight_end":38},{"text":"                sorted(&self.route_labels),","highlight_start":1,"highlight_end":44},{"text":"                sorted(&self.texts),","highlight_start":1,"highlight_end":37},{"text":"                sorted(&self.comments),","highlight_start":1,"highlight_end":40},{"text":"                sorted(&self.images),","highlight_start":1,"highlight_end":38},{"text":"            ),","highlight_start":1,"highlight_end":15},{"text":"        )","highlight_start":1,"highlight_end":10},{"text":"        .expect(\"the document serializes infallibly\");","highlight_start":1,"highlight_end":54}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if this value is an `Err`, it will panic","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#expect_used","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"requested on the command line with `-W clippy::expect-used`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: used `expect()` on a `Result` value\u001b[0m\n   \u001b[1m\u001b[94m--> \u001b[0msrc/doc_ng/document.rs:111:9\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m111\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m/\u001b[0m         serde_json::to_writer(\n\u001b[1m\u001b[94m112\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m             &mut hasher,\n\u001b[1m\u001b[94m113\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m             &(\n\u001b[1m\u001b[94m114\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m                 self.rev,\n\u001b[1m\u001b[94m...\u001b[0m   \u001b[1m\u001b[33m|\u001b[0m\n\u001b[1m\u001b[94m125\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m         .expect(\"the document serializes infallibly\");\n    \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|_____________________________________________________^\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: if this value is an `Err`, it will panic\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#expect_used\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: requested on the command line with `-W clippy::expect-used`\n\n"}
{"$message_type":"diagnostic","message":"2 warnings emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: 2 warnings emitted\u001b[0m\n\n"}
