mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
fmt: update use of *T to *const T
This commit is contained in:
parent
760be3f9e1
commit
c60c274b7c
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ fn break_knuth_plass<'a, T: Clone + Iterator<&'a WordInfo<'a>>>(mut iter: T, arg
|
||||||
|
|
||||||
// We find identical breakpoints here by comparing addresses of the references.
|
// We find identical breakpoints here by comparing addresses of the references.
|
||||||
// This is OK because the backing vector is not mutating once we are linebreaking.
|
// This is OK because the backing vector is not mutating once we are linebreaking.
|
||||||
if winfo as *_ == next_break as *_ {
|
if winfo as *const _ == next_break as *const _ {
|
||||||
// OK, we found the matching word
|
// OK, we found the matching word
|
||||||
if break_before {
|
if break_before {
|
||||||
write_newline(args.indent_str, args.ostream);
|
write_newline(args.indent_str, args.ostream);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue