Skip to content

Commit b0566b9

Browse files
committed
rename module: instant_substraction to time_substraction
1 parent 2972ae5 commit b0566b9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clippy_lints/src/declared_lints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ pub static LINTS: &[&::declare_clippy_lint::LintInfo] = &[
226226
crate::inherent_to_string::INHERENT_TO_STRING_SHADOW_DISPLAY_INFO,
227227
crate::init_numbered_fields::INIT_NUMBERED_FIELDS_INFO,
228228
crate::inline_fn_without_body::INLINE_FN_WITHOUT_BODY_INFO,
229-
crate::instant_subtraction::MANUAL_INSTANT_ELAPSED_INFO,
230-
crate::instant_subtraction::UNCHECKED_TIME_SUBTRACTION_INFO,
229+
crate::time_subtraction::MANUAL_INSTANT_ELAPSED_INFO,
230+
crate::time_subtraction::UNCHECKED_TIME_SUBTRACTION_INFO,
231231
crate::int_plus_one::INT_PLUS_ONE_INFO,
232232
crate::integer_division_remainder_used::INTEGER_DIVISION_REMAINDER_USED_INFO,
233233
crate::invalid_upcast_comparisons::INVALID_UPCAST_COMPARISONS_INFO,

clippy_lints/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ mod inherent_impl;
176176
mod inherent_to_string;
177177
mod init_numbered_fields;
178178
mod inline_fn_without_body;
179-
mod instant_subtraction;
180179
mod int_plus_one;
181180
mod integer_division_remainder_used;
182181
mod invalid_upcast_comparisons;
@@ -357,6 +356,7 @@ mod swap_ptr_to_ref;
357356
mod tabs_in_doc_comments;
358357
mod temporary_assignment;
359358
mod tests_outside_test_module;
359+
mod time_subtraction;
360360
mod to_digit_is_some;
361361
mod to_string_trait_impl;
362362
mod toplevel_ref_arg;
@@ -718,7 +718,7 @@ pub fn register_lint_passes(store: &mut rustc_lint::LintStore, conf: &'static Co
718718
store.register_late_pass(move |_| Box::new(manual_rotate::ManualRotate));
719719
store.register_late_pass(move |_| Box::new(operators::Operators::new(conf)));
720720
store.register_late_pass(move |_| Box::new(std_instead_of_core::StdReexports::new(conf)));
721-
store.register_late_pass(move |_| Box::new(instant_subtraction::InstantSubtraction::new(conf)));
721+
store.register_late_pass(move |_| Box::new(time_subtraction::InstantSubtraction::new(conf)));
722722
store.register_late_pass(|_| Box::new(partialeq_to_none::PartialeqToNone));
723723
store.register_late_pass(move |_| Box::new(manual_abs_diff::ManualAbsDiff::new(conf)));
724724
store.register_late_pass(move |_| Box::new(manual_clamp::ManualClamp::new(conf)));
File renamed without changes.

0 commit comments

Comments
 (0)