From c60c274b7c03261b6440275b2ea08de279d1966a Mon Sep 17 00:00:00 2001 From: kwantam Date: Mon, 30 Jun 2014 19:26:31 -0400 Subject: [PATCH] fmt: update use of *T to *const T --- fmt/linebreak.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/linebreak.rs b/fmt/linebreak.rs index 89f85b164..a032792c4 100644 --- a/fmt/linebreak.rs +++ b/fmt/linebreak.rs @@ -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. // 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 if break_before { write_newline(args.indent_str, args.ostream);