Skip to content

Commit 339ce9c

Browse files
committed
Bump edition to 2024
1 parent f9bc99b commit 339ce9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
22
name = "cargo-mutants"
33
version = "26.0.1"
4-
edition = "2021"
4+
edition = "2024"
55
authors = ["Martin Pool"]
66
license = "MIT"
77
description = "Inject bugs and see if your tests catch them"
88
repository = "https://github.com/sourcefrog/cargo-mutants"
99
homepage = "https://mutants.rs/"
1010
categories = ["development-tools::testing"]
1111
keywords = ["testing", "mutants", "cargo", "mutation-testing", "coverage"]
12-
rust-version = "1.78"
12+
rust-version = "1.88"
1313

1414
[package.metadata.wix]
1515
upgrade-guid = "CA7BFE8D-F3A7-4D1D-AE43-B7749110FA90"

src/fnvalue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ fn known_map(path: &Path) -> Option<(&Ident, &Type, &Type)> {
339339
{
340340
// TODO: Skip lifetime args.
341341
// TODO: Return the path with args stripped out.
342-
if let Some((GenericArgument::Type(ref key_type), GenericArgument::Type(ref value_type))) =
342+
if let Some((GenericArgument::Type(key_type), GenericArgument::Type(value_type))) =
343343
args.iter().collect_tuple()
344344
{
345345
return Some((&last.ident, key_type, value_type));
@@ -441,7 +441,7 @@ fn match_first_type_arg<'p>(path: &'p Path, expected_ident: &str) -> Option<&'p
441441
mod test {
442442
use itertools::Itertools;
443443
use pretty_assertions::assert_eq;
444-
use syn::{parse_quote, Expr, ReturnType};
444+
use syn::{Expr, ReturnType, parse_quote};
445445

446446
use crate::fnvalue::match_impl_iterator;
447447
use crate::pretty::ToPrettyString;

0 commit comments

Comments
 (0)