{"$message_type":"diagnostic","message":"missing `#[must_use]` attribute on a method returning `Self`","code":{"code":"clippy::return_self_not_must_use","explanation":null},"level":"warning","spans":[{"file_name":"crates/paint/src/palette.rs","byte_start":6382,"byte_end":6573,"line_start":202,"line_end":207,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":"    pub fn toned(&self, saturation: Saturation) -> Self {","highlight_start":5,"highlight_end":58},{"text":"        Self {","highlight_start":1,"highlight_end":15},{"text":"            colors: self.colors.map(|color| saturation.applied(color)),","highlight_start":1,"highlight_end":72},{"text":"            is_dark: self.is_dark,","highlight_start":1,"highlight_end":35},{"text":"        }","highlight_start":1,"highlight_end":10},{"text":"    }","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider adding the `#[must_use]` attribute to the method or directly to the `Self` type","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#return_self_not_must_use","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"to override `-W clippy::pedantic` add `#[allow(clippy::return_self_not_must_use)]`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: missing `#[must_use]` attribute on a method returning `Self`\u001b[0m\n   \u001b[1m\u001b[94m--> \u001b[0mcrates/paint/src/palette.rs:202:5\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m202\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m/\u001b[0m     pub fn toned(&self, saturation: Saturation) -> Self {\n\u001b[1m\u001b[94m203\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m         Self {\n\u001b[1m\u001b[94m204\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m             colors: self.colors.map(|color| saturation.applied(color)),\n\u001b[1m\u001b[94m205\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m             is_dark: self.is_dark,\n\u001b[1m\u001b[94m206\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m|\u001b[0m         }\n\u001b[1m\u001b[94m207\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: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type\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#return_self_not_must_use\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic`\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: to override `-W clippy::pedantic` add `#[allow(clippy::return_self_not_must_use)]`\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"}
