-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] [Refactor] Defining clippy rules #91
Changes from 8 commits
dac0805
55a074e
e4996ad
683c918
78bd71d
555e70b
c7ff384
2e12e0a
c681084
f7bbd1d
c74f253
f2b66f3
0138ad9
c69fe9a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,9 +32,10 @@ impl ObjectBuilder { | |
value: PropertyValue, | ||
position: Option<SpanWithSource>, | ||
) { | ||
environment.facts.register_property(self.object, publicity, under, value, true, position) | ||
environment.facts.register_property(self.object, publicity, under, value, true, position); | ||
} | ||
|
||
#[must_use] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. I haven't had much experience with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to this (old) reddit post by one of clippy maintainer here is how they decide which function should be marked with After adding |
||
pub fn build_object(self) -> TypeId { | ||
self.object | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I have used
.by_ref()
on iterator methods that consume brefore. Didn't know it could be used in the case where you don't wantfor
to consume 👍