Skip to content

Commit 85da772

Browse files
clean up some warnings
1 parent 2ed4e3c commit 85da772

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/array2d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<'a, T: Sized> Array2DData for &'a [T] {
7070
Iter {
7171
positions: this.positions(),
7272
stride: this.stride(),
73-
data: this.data.borrow(),
73+
data: this.data,
7474
}
7575
}
7676
}

src/polynomial/div_rem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ impl<'l, 'r, T: PolynomialCoefficient + for<'a> ExactDiv<&'a T, Output = T>>
244244
{
245245
type Output = Polynomial<T>;
246246
fn exact_div(self, rhs: &Polynomial<T>) -> Polynomial<T> {
247-
let (quotient, factor) = self.clone().exact_pseudo_div(rhs.borrow());
247+
let (quotient, factor) = self.clone().exact_pseudo_div(rhs);
248248
quotient.exact_div(factor)
249249
}
250250
fn checked_exact_div(self, rhs: &Polynomial<T>) -> Option<Polynomial<T>> {
251-
let (quotient, factor) = self.clone().checked_exact_pseudo_div(rhs.borrow())?;
251+
let (quotient, factor) = self.clone().checked_exact_pseudo_div(rhs)?;
252252
quotient.checked_exact_div(factor)
253253
}
254254
}

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ pub(crate) trait PrintTree: for<'a> PrintTreeData<'a> {
934934
&'a self,
935935
) -> LeafOrNodePair<
936936
<Self as PrintTreeData<'a>>::Leaf,
937-
&Self,
937+
&'a Self,
938938
<Self as PrintTreeData<'a>>::NodeData,
939939
>;
940940
fn write_or_print_tree<WriteLnFn: FnMut(fmt::Arguments) -> Result<(), E>, E>(

0 commit comments

Comments
 (0)