Skip to content

Commit b1fa284

Browse files
committed
Update version attribute for 1.78 lints
1 parent 0fc9a65 commit b1fa284

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

clippy_lints/src/assigning_clones.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// a.clone_from(&b);
4646
/// }
4747
/// ```
48-
#[clippy::version = "1.77.0"]
48+
#[clippy::version = "1.78.0"]
4949
pub ASSIGNING_CLONES,
5050
perf,
5151
"assigning the result of cloning may be inefficient"

clippy_lints/src/cargo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ declare_clippy_lint! {
197197
/// pedantic = { level = "warn", priority = -1 }
198198
/// similar_names = "allow"
199199
/// ```
200-
#[clippy::version = "1.76.0"]
200+
#[clippy::version = "1.78.0"]
201201
pub LINT_GROUPS_PRIORITY,
202202
correctness,
203203
"a lint group in `Cargo.toml` at the same priority as a lint"

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ declare_clippy_lint! {
708708
/// let a_ref = &1;
709709
/// let a_ptr = std::ptr::from_ref(a_ref);
710710
/// ```
711-
#[clippy::version = "1.77.0"]
711+
#[clippy::version = "1.78.0"]
712712
pub REF_AS_PTR,
713713
pedantic,
714714
"using `as` to cast a reference to pointer"

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3993,7 +3993,7 @@ declare_clippy_lint! {
39933993
/// let x: Result<u32, ()> = Ok(0);
39943994
/// let y = x.unwrap_or_else(|err| handle_error(err));
39953995
/// ```
3996-
#[clippy::version = "1.77.0"]
3996+
#[clippy::version = "1.78.0"]
39973997
pub UNNECESSARY_RESULT_MAP_OR_ELSE,
39983998
suspicious,
39993999
"making no use of the \"map closure\" when calling `.map_or_else(|err| handle_error(err), |n| n)`"
@@ -4027,7 +4027,7 @@ declare_clippy_lint! {
40274027
/// needs_cstr(c"Hello");
40284028
/// unsafe { libc::puts(c"World".as_ptr()) }
40294029
/// ```
4030-
#[clippy::version = "1.76.0"]
4030+
#[clippy::version = "1.78.0"]
40314031
pub MANUAL_C_STR_LITERALS,
40324032
pedantic,
40334033
r#"creating a `CStr` through functions when `c""` literals can be used"#

clippy_lints/src/multiple_bound_locations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare_clippy_lint! {
2929
/// F: Sized + std::fmt::Debug,
3030
/// {}
3131
/// ```
32-
#[clippy::version = "1.77.0"]
32+
#[clippy::version = "1.78.0"]
3333
pub MULTIPLE_BOUND_LOCATIONS,
3434
suspicious,
3535
"defining generic bounds in multiple locations"

clippy_lints/src/to_string_trait_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ declare_clippy_lint! {
3838
/// }
3939
/// }
4040
/// ```
41-
#[clippy::version = "1.77.0"]
41+
#[clippy::version = "1.78.0"]
4242
pub TO_STRING_TRAIT_IMPL,
4343
style,
4444
"check for direct implementations of `ToString`"

0 commit comments

Comments
 (0)