| 
276 | 276 |        html_root_url = "https://doc.rust-lang.org/nightly/",  | 
277 | 277 |        test(attr(allow(unused_variables), deny(warnings))))]  | 
278 | 278 | 
 
  | 
279 |  | -#![feature(nll)]  | 
 | 279 | +#![deny(rust_2018_idioms)]  | 
 | 280 | + | 
280 | 281 | #![feature(str_escape)]  | 
281 | 282 | 
 
  | 
282 |  | -use self::LabelText::*;  | 
 | 283 | +use LabelText::*;  | 
283 | 284 | 
 
  | 
284 | 285 | use std::borrow::Cow;  | 
285 | 286 | use std::io::prelude::*;  | 
@@ -548,12 +549,12 @@ impl<'a> LabelText<'a> {  | 
548 | 549 |     }  | 
549 | 550 | 
 
  | 
550 | 551 |     /// Puts `prefix` on a line above this label, with a blank line separator.  | 
551 |  | -    pub fn prefix_line(self, prefix: LabelText) -> LabelText<'static> {  | 
 | 552 | +    pub fn prefix_line(self, prefix: LabelText<'_>) -> LabelText<'static> {  | 
552 | 553 |         prefix.suffix_line(self)  | 
553 | 554 |     }  | 
554 | 555 | 
 
  | 
555 | 556 |     /// Puts `suffix` on a line below this label, with a blank line separator.  | 
556 |  | -    pub fn suffix_line(self, suffix: LabelText) -> LabelText<'static> {  | 
 | 557 | +    pub fn suffix_line(self, suffix: LabelText<'_>) -> LabelText<'static> {  | 
557 | 558 |         let mut prefix = self.pre_escaped_content().into_owned();  | 
558 | 559 |         let suffix = suffix.pre_escaped_content();  | 
559 | 560 |         prefix.push_str(r"\n\n");  | 
@@ -686,7 +687,7 @@ pub fn render_opts<'a, N, E, G, W>(g: &'a G,  | 
686 | 687 | 
 
  | 
687 | 688 | #[cfg(test)]  | 
688 | 689 | mod tests {  | 
689 |  | -    use self::NodeLabels::*;  | 
 | 690 | +    use NodeLabels::*;  | 
690 | 691 |     use super::{Id, Labeller, Nodes, Edges, GraphWalk, render, Style};  | 
691 | 692 |     use super::LabelText::{self, LabelStr, EscStr, HtmlStr};  | 
692 | 693 |     use std::io;  | 
 | 
0 commit comments