]> git.proxmox.com Git - rustc.git/blobdiff - src/librustdoc/html/length_limit.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / src / librustdoc / html / length_limit.rs
index bbdc91c8d2ec8fbbe3b686002cd0bf34e249c32b..4c8db2c6784a52267c06cfb68db3c2382296624c 100644 (file)
@@ -61,14 +61,14 @@ impl HtmlWithLimit {
     /// and returns [`ControlFlow::Break`].
     pub(super) fn push(&mut self, text: &str) -> ControlFlow<(), ()> {
         if self.len + text.len() > self.limit {
-            return ControlFlow::BREAK;
+            return ControlFlow::Break(());
         }
 
         self.flush_queue();
         write!(self.buf, "{}", Escape(text)).unwrap();
         self.len += text.len();
 
-        ControlFlow::CONTINUE
+        ControlFlow::Continue(())
     }
 
     /// Open an HTML tag.