Skip to content

warning: hidden lifetime parameters in types are deprecated #6

@ice1000

Description

@ice1000
warning: hidden lifetime parameters in types are deprecated
 --> /home/ubuntu/git-repos/pretty-xmlish/src/ascii.rs:4:56
  |
4 |     pub fn ascii(&mut self, out: &mut String, pretty: &Pretty) {
  |                                                        ^^^^^^ expected lifetime parameter
  |
  = note: `-W elided-lifetimes-in-paths` implied by `-W rust-2018-idioms`
help: indicate the anonymous lifetime
  |
4 |     pub fn ascii(&mut self, out: &mut String, pretty: &Pretty<'_>) {
  |                                                              ++++

warning: hidden lifetime parameters in types are deprecated
   --> /home/ubuntu/git-repos/pretty-xmlish/src/ascii.rs:102:50
    |
102 |     pub(crate) fn line_ascii(&mut self, pretty: &Pretty, self_indent_len: usize) {
    |                                                  ^^^^^^ expected lifetime parameter
    |
help: indicate the anonymous lifetime
    |
102 |     pub(crate) fn line_ascii(&mut self, pretty: &Pretty<'_>, self_indent_len: usize) {
    |                                                        ++++

warning: hidden lifetime parameters in types are deprecated
   --> /home/ubuntu/git-repos/pretty-xmlish/src/ascii.rs:135:40
    |
135 |     fn line_ascii_xml(&mut self, xml: &XmlNode, indent_len: usize, self_indent_len: usize) {
    |                                        ^^^^^^^ expected lifetime parameter
    |
help: indicate the anonymous lifetime
    |
135 |     fn line_ascii_xml(&mut self, xml: &XmlNode<'_>, indent_len: usize, self_indent_len: usize) {
    |                                               ++++

warning: hidden lifetime parameters in types are deprecated
  --> /home/ubuntu/git-repos/pretty-xmlish/src/unicode.rs:16:58
   |
16 |     pub fn unicode(&mut self, out: &mut String, pretty: &Pretty) -> usize {
   |                                                          ^^^^^^ expected lifetime parameter
   |
help: indicate the anonymous lifetime
   |
16 |     pub fn unicode(&mut self, out: &mut String, pretty: &Pretty<'_>) -> usize {
   |                                                                ++++

warning: hidden lifetime parameters in types are deprecated
   --> /home/ubuntu/git-repos/pretty-xmlish/src/unicode.rs:121:52
    |
121 |     pub(crate) fn line_unicode(&mut self, pretty: &Pretty, indent_len: usize, prefix: &str) {
    |                                                    ^^^^^^ expected lifetime parameter
    |
help: indicate the anonymous lifetime
    |
121 |     pub(crate) fn line_unicode(&mut self, pretty: &Pretty<'_>, indent_len: usize, prefix: &str) {
    |                                                          ++++

warning: hidden lifetime parameters in types are deprecated
   --> /home/ubuntu/git-repos/pretty-xmlish/src/unicode.rs:186:15
    |
186 |         xml: &XmlNode,
    |               ^^^^^^^ expected lifetime parameter
    |
help: indicate the anonymous lifetime
    |
186 |         xml: &XmlNode<'_>,
    |                      ++++

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions