Fix new clippy lints
This commit is contained in:
parent
e8f8216ea1
commit
602661372c
48 changed files with 123 additions and 122 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue