Skip to content

Commit

Permalink
Enable clippy::return_self_not_must_use lint (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Oct 14, 2024
1 parent fbf3c7f commit 1957a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ clippy.missing_errors_doc = "warn"
clippy.missing_fields_in_debug = "warn"
clippy.missing_panics_doc = "warn"
clippy.partial_pub_fields = "warn"
clippy.return_self_not_must_use = "warn"
clippy.same_functions_in_if_condition = "warn"
clippy.semicolon_if_nothing_returned = "warn"
clippy.shadow_unrelated = "warn"
Expand All @@ -78,7 +79,6 @@ clippy.unseparated_literal_suffix = "warn"
clippy.wildcard_imports = "warn"

# TODO: Enable these and move them back above.
# clippy.return_self_not_must_use = "warn"
# clippy.use_self = "warn"
# rust.elided_lifetimes_in_paths = "warn"
# rust.missing_docs = "warn"
Expand Down
1 change: 1 addition & 0 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ impl<T: Tween> Animated<T> {

/// Something that can be interpolated with an easing function.
pub trait Tween: Clone + Default {
#[must_use]
fn tween(&self, other: &Self, t: f64, easing: &Easing) -> Self;
}

Expand Down

0 comments on commit 1957a2b

Please sign in to comment.