Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: hidden lifetime parameters in types are deprecated #6

Open
ice1000 opened this issue Mar 15, 2023 · 0 comments
Open

warning: hidden lifetime parameters in types are deprecated #6

ice1000 opened this issue Mar 15, 2023 · 0 comments

Comments

@ice1000
Copy link
Collaborator

ice1000 commented Mar 15, 2023

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<'_>,
    |                      ++++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant