{"$message_type":"diagnostic","message":"implementation of inherent method `to_string(&self) -> String` for type `rope::DocumentSnapshot`","code":{"code":"clippy::inherent_to_string","explanation":null},"level":"warning","spans":[{"file_name":"crates/temporal-reconstruct/src/rope.rs","byte_start":2188,"byte_end":2563,"line_start":84,"line_end":94,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":"    pub fn to_string(&self) -> String {","highlight_start":5,"highlight_end":40},{"text":"        let total_chars: usize = self.lines.iter().map(|l| l.content.len() + 1).sum();","highlight_start":1,"highlight_end":87},{"text":"        let mut out = String::with_capacity(total_chars);","highlight_start":1,"highlight_end":58},{"text":"        for (i, line) in self.lines.iter().enumerate() {","highlight_start":1,"highlight_end":57},{"text":"            if i > 0 {","highlight_start":1,"highlight_end":23},{"text":"                out.push('\\n');","highlight_start":1,"highlight_end":32},{"text":"            }","highlight_start":1,"highlight_end":14},{"text":"            out.push_str(&line.content);","highlight_start":1,"highlight_end":41},{"text":"        }","highlight_start":1,"highlight_end":10},{"text":"        out","highlight_start":1,"highlight_end":12},{"text":"    }","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"implement trait `Display` for type `rope::DocumentSnapshot` instead","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#inherent_to_string","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`#[warn(clippy::inherent_to_string)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: implementation of inherent method `to_string(&self) -> String` for type `rope::DocumentSnapshot`\u001b[0m\n  \u001b[1m\u001b[94m--> \u001b[0mcrates/temporal-reconstruct/src/rope.rs:84:5\n   \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m/\u001b[0m     pub fn to_string(&self) -> String {\n\u001b[1m\u001b[94m85\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m         let total_chars: usize = self.lines.iter().map(|l| l.content.l\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m86\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m         let mut out = String::with_capacity(total_chars);\n\u001b[1m\u001b[94m87\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m         for (i, line) in self.lines.iter().enumerate() {\n\u001b[1m\u001b[94m...\u001b[0m  \u001b[1m\u001b[33m|\u001b[0m\n\u001b[1m\u001b[94m93\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m         out\n\u001b[1m\u001b[94m94\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m     }\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[1mhelp\u001b[0m: implement trait `Display` for type `rope::DocumentSnapshot` instead\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#inherent_to_string\n   \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(clippy::inherent_to_string)]` on by default\n\n"}
{"$message_type":"diagnostic","message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: 1 warning emitted\u001b[0m\n\n"}
