Skip to content

Commit

Permalink
Remove unused lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Aug 1, 2022
1 parent 823cb56 commit de6f09a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"rust-analyzer.cargo.allFeatures": true,
"rust-analyzer.assist.importMergeBehavior": "last"
"rust-analyzer.assist.importMergeBehavior": "last",
"rust-analyzer.checkOnSave.command": "clippy"
}
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct SliceRemapper<'x, T: ?Sized> {
indexes: Vec<Range<usize>>,
}

impl<'x, 'slices, T: DiffableStr + ?Sized> SliceRemapper<'x, T> {
impl<'x, T: DiffableStr + ?Sized> SliceRemapper<'x, T> {
fn new(source: &'x T, slices: &[&'x T]) -> SliceRemapper<'x, T> {
let indexes = slices
.iter()
Expand Down Expand Up @@ -99,7 +99,7 @@ pub struct TextDiffRemapper<'x, T: ?Sized> {
new: SliceRemapper<'x, T>,
}

impl<'x, 'slices, T: DiffableStr + ?Sized> TextDiffRemapper<'x, T> {
impl<'x, T: DiffableStr + ?Sized> TextDiffRemapper<'x, T> {
/// Creates a new remapper from strings and slices.
pub fn new(
old_slices: &[&'x T],
Expand Down

0 comments on commit de6f09a

Please sign in to comment.