Remove unused lifetime
This commit is contained in:
parent
823cb566df
commit
de6f09a01c
2 changed files with 4 additions and 3 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"rust-analyzer.cargo.allFeatures": true,
|
"rust-analyzer.cargo.allFeatures": true,
|
||||||
"rust-analyzer.assist.importMergeBehavior": "last"
|
"rust-analyzer.assist.importMergeBehavior": "last",
|
||||||
|
"rust-analyzer.checkOnSave.command": "clippy"
|
||||||
}
|
}
|
||||||
|
|
@ -37,7 +37,7 @@ struct SliceRemapper<'x, T: ?Sized> {
|
||||||
indexes: Vec<Range<usize>>,
|
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> {
|
fn new(source: &'x T, slices: &[&'x T]) -> SliceRemapper<'x, T> {
|
||||||
let indexes = slices
|
let indexes = slices
|
||||||
.iter()
|
.iter()
|
||||||
|
|
@ -99,7 +99,7 @@ pub struct TextDiffRemapper<'x, T: ?Sized> {
|
||||||
new: SliceRemapper<'x, T>,
|
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.
|
/// Creates a new remapper from strings and slices.
|
||||||
pub fn new(
|
pub fn new(
|
||||||
old_slices: &[&'x T],
|
old_slices: &[&'x T],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue