Fix new clippy lints

This commit is contained in:
Héctor Ramón Jiménez 2024-12-02 19:53:16 +01:00
parent e8f8216ea1
commit 602661372c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
48 changed files with 123 additions and 122 deletions

View file

@ -23,7 +23,7 @@ pub struct Stroke<'a> {
pub line_dash: LineDash<'a>,
}
impl<'a> Stroke<'a> {
impl Stroke<'_> {
/// Sets the color of the [`Stroke`].
pub fn with_color(self, color: Color) -> Self {
Stroke {
@ -48,7 +48,7 @@ impl<'a> Stroke<'a> {
}
}
impl<'a> Default for Stroke<'a> {
impl Default for Stroke<'_> {
fn default() -> Self {
Stroke {
style: Style::Solid(Color::BLACK),