Skip to content

Commit

Permalink
Ignore uninlined_format_args pedantic clippy lint
Browse files Browse the repository at this point in the history
    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/app.rs:145:36
        |
    145 |                         return Err(format!("cannot have both {0}=false and {0}=true", name));
        |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
        = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
    help: change this to
        |
    145 -                         return Err(format!("cannot have both {0}=false and {0}=true", name));
    145 +                         return Err(format!("cannot have both {name}=false and {name}=true"));
        |

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/cfg.rs:37:27
       |
    37 |                   let msg = format!(
       |  ___________________________^
    38 | |                     "pass `--cfg {}=\"...\"` to be able to use this attribute",
    39 | |                     name,
    40 | |                 );
       | |_________________^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/cfg.rs:50:27
       |
    50 |                 let msg = format!("the cxxbridge flags say both {0}=false and {0}=true", name);
       |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    50 -                 let msg = format!("the cxxbridge flags say both {0}=false and {0}=true", name);
    50 +                 let msg = format!("the cxxbridge flags say both {name}=false and {name}=true");
       |

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/cfg.rs:57:27
       |
    57 |                   let msg = format!(
       |  ___________________________^
    58 | |                     "pass either `--cfg {0}=true` or `--cfg {0}=false` to be able to use this cfg attribute",
    59 | |                     name,
    60 | |                 );
       | |_________________^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/gen/error.rs:94:17
       |
    94 |                 write!(formatter, "\n\nCaused by:\n    {}", cause)?;
       |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    94 -                 write!(formatter, "\n\nCaused by:\n    {}", cause)?;
    94 +                 write!(formatter, "\n\nCaused by:\n    {cause}")?;
       |

    warning: variables can be used directly in the `format!` string
     --> gen/cmd/src/gen/ifndef.rs:5:18
      |
    5 |     let ifndef = format!("#ifndef {}", guard);
      |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
      |
    5 -     let ifndef = format!("#ifndef {}", guard);
    5 +     let ifndef = format!("#ifndef {guard}");
      |

    warning: variables can be used directly in the `format!` string
     --> gen/cmd/src/gen/ifndef.rs:6:18
      |
    6 |     let define = format!("#define {}", guard);
      |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
      |
    6 -     let define = format!("#define {}", guard);
    6 +     let define = format!("#define {guard}");
      |

    warning: variables can be used directly in the `format!` string
     --> gen/cmd/src/gen/ifndef.rs:7:17
      |
    7 |     let endif = format!("#endif // {}", guard);
      |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
      |
    7 -     let endif = format!("#endif // {}", guard);
    7 +     let endif = format!("#endif // {guard}");
      |

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/gen/ifndef.rs:19:17
       |
    19 |                 writeln!(out, "{}", ifndef);
       |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    19 -                 writeln!(out, "{}", ifndef);
    19 +                 writeln!(out, "{ifndef}");
       |

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/gen/ifndef.rs:20:17
       |
    20 |                 writeln!(out, "{}", define);
       |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    20 -                 writeln!(out, "{}", define);
    20 +                 writeln!(out, "{define}");
       |

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/gen/ifndef.rs:24:21
       |
    24 |                     writeln!(out, "{}", line);
       |                     ^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    24 -                     writeln!(out, "{}", line);
    24 +                     writeln!(out, "{line}");
       |

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/gen/ifndef.rs:29:13
       |
    29 |             panic!("not found in cxx.h header: {}", guard)
       |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    29 -             panic!("not found in cxx.h header: {}", guard)
    29 +             panic!("not found in cxx.h header: {guard}")
       |

    warning: variables can be used directly in the `format!` string
      --> gen/cmd/src/gen/ifndef.rs:31:13
       |
    31 |             writeln!(out, "{}", endif);
       |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    31 -             writeln!(out, "{}", endif);
    31 +             writeln!(out, "{endif}");
       |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:177:17
        |
    177 |                 writeln!(out, "template <> struct hash<{}> {{", qualified);
        |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    177 -                 writeln!(out, "template <> struct hash<{}> {{", qualified);
    177 +                 writeln!(out, "template <> struct hash<{qualified}> {{");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:178:17
        |
    178 | /                 writeln!(
    179 | |                     out,
    180 | |                     "  ::std::size_t operator()({} const &self) const noexcept {{",
    181 | |                     qualified,
    182 | |                 );
        | |_________________^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:186:21
        |
    186 |                     write!(out, "{}::", name);
        |                     ^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    186 -                     write!(out, "{}::", name);
    186 +                     write!(out, "{name}::");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:188:17
        |
    188 |                 writeln!(out, "{}(self);", link_name);
        |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    188 -                 writeln!(out, "{}(self);", link_name);
    188 +                 writeln!(out, "{link_name}(self);");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:233:13
        |
    233 |             writeln!(out, "{}///{}", indent, line);
        |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    233 -             writeln!(out, "{}///{}", indent, line);
    233 +             writeln!(out, "{indent}///{line}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:235:13
        |
    235 |             writeln!(out, "{}//{}", indent, line);
        |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    235 -             writeln!(out, "{}//{}", indent, line);
    235 +             writeln!(out, "{indent}//{line}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:244:9
        |
    244 |         writeln!(out, "{}///", indent);
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    244 -         writeln!(out, "{}///", indent);
    244 +         writeln!(out, "{indent}///");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:254:5
        |
    254 |     writeln!(out, "#ifndef {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    254 -     writeln!(out, "#ifndef {}", guard);
    254 +     writeln!(out, "#ifndef {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:255:5
        |
    255 |     writeln!(out, "#define {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    255 -     writeln!(out, "#define {}", guard);
    255 +     writeln!(out, "#define {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:324:5
        |
    324 |     writeln!(out, "#endif // {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    324 -     writeln!(out, "#endif // {}", guard);
    324 +     writeln!(out, "#endif // {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:349:5
        |
    349 |     writeln!(out, "#ifndef {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    349 -     writeln!(out, "#ifndef {}", guard);
    349 +     writeln!(out, "#ifndef {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:350:5
        |
    350 |     writeln!(out, "#define {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    350 -     writeln!(out, "#define {}", guard);
    350 +     writeln!(out, "#define {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:388:5
        |
    388 |     writeln!(out, "#endif // {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    388 -     writeln!(out, "#endif // {}", guard);
    388 +     writeln!(out, "#endif // {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:399:5
        |
    399 |     writeln!(out, "#ifndef {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    399 -     writeln!(out, "#ifndef {}", guard);
    399 +     writeln!(out, "#ifndef {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:400:5
        |
    400 |     writeln!(out, "#define {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    400 -     writeln!(out, "#define {}", guard);
    400 +     writeln!(out, "#define {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:410:5
        |
    410 |     writeln!(out, "#endif // {}", guard);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    410 -     writeln!(out, "#endif // {}", guard);
    410 +     writeln!(out, "#endif // {guard}");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:492:9
        |
    492 |         writeln!(out, "    ::rust::IsRelocatableOrArray<{}>::value,", id);
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    492 -         writeln!(out, "    ::rust::IsRelocatableOrArray<{}>::value,", id);
    492 +         writeln!(out, "    ::rust::IsRelocatableOrArray<{id}>::value,");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:494:9
        |
    494 |         writeln!(out, "    ::rust::IsRelocatable<{}>::value,", id);
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    494 -         writeln!(out, "    ::rust::IsRelocatable<{}>::value,", id);
    494 +         writeln!(out, "    ::rust::IsRelocatable<{id}>::value,");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:586:9
        |
    586 |         writeln!(out, "  return {}(*this, rhs);", link_name);
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    586 -         writeln!(out, "  return {}(*this, rhs);", link_name);
    586 +         writeln!(out, "  return {link_name}(*this, rhs);");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:599:13
        |
    599 |             writeln!(out, "  return {}(*this, rhs);", link_name);
        |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    599 -             writeln!(out, "  return {}(*this, rhs);", link_name);
    599 +             writeln!(out, "  return {link_name}(*this, rhs);");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:612:9
        |
    612 |         writeln!(out, "  return {}(*this, rhs);", link_name);
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    612 -         writeln!(out, "  return {}(*this, rhs);", link_name);
    612 +         writeln!(out, "  return {link_name}(*this, rhs);");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:622:9
        |
    622 |         writeln!(out, "  return {}(*this, rhs);", link_name);
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    622 -         writeln!(out, "  return {}(*this, rhs);", link_name);
    622 +         writeln!(out, "  return {link_name}(*this, rhs);");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:635:13
        |
    635 |             writeln!(out, "  return {}(*this, rhs);", link_name);
        |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    635 -             writeln!(out, "  return {}(*this, rhs);", link_name);
    635 +             writeln!(out, "  return {link_name}(*this, rhs);");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:649:13
        |
    649 |             writeln!(out, "  return {}(*this, rhs);", link_name);
        |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    649 -             writeln!(out, "  return {}(*this, rhs);", link_name);
    649 +             writeln!(out, "  return {link_name}(*this, rhs);");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:660:5
        |
    660 |     writeln!(out, "::std::size_t {}() noexcept;", link_name);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    660 -     writeln!(out, "::std::size_t {}() noexcept;", link_name);
    660 +     writeln!(out, "::std::size_t {link_name}() noexcept;");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:663:5
        |
    663 |     writeln!(out, "::std::size_t {}() noexcept;", link_name);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    663 -     writeln!(out, "::std::size_t {}() noexcept;", link_name);
    663 +     writeln!(out, "::std::size_t {link_name}() noexcept;");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:682:5
        |
    682 |     writeln!(out, "  return {}();", link_name);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    682 -     writeln!(out, "  return {}();", link_name);
    682 +     writeln!(out, "  return {link_name}();");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:692:5
        |
    692 |     writeln!(out, "  return {}();", link_name);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    692 -     writeln!(out, "  return {}();", link_name);
    692 +     writeln!(out, "  return {link_name}();");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:698:9
        |
    698 |         write!(out, "{} ", annotation);
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    698 -         write!(out, "{} ", annotation);
    698 +         write!(out, "{annotation} ");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:714:5
        |
    714 |     write!(out, "{}(", mangled);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    714 -     write!(out, "{}(", mangled);
    714 +     write!(out, "{mangled}(");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:906:5
        |
    906 |     write!(out, "{}(", link_name);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    906 -     write!(out, "{}(", link_name);
    906 +     write!(out, "{link_name}(");
        |

    warning: variables can be used directly in the `format!` string
       --> gen/cmd/src/gen/write.rs:977:5
        |
    977 |     write!(out, "{}(", local_name);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
        |
    977 -     write!(out, "{}(", local_name);
    977 +     write!(out, "{local_name}(");
        |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1079:5
         |
    1079 |     write!(out, "{}(", invoke);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1079 -     write!(out, "{}(", invoke);
    1079 +     write!(out, "{invoke}(");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1438:5
         |
    1438 | /     writeln!(
    1439 | |         out,
    1440 | |         "{} *cxxbridge1$box${}$alloc() noexcept;",
    1441 | |         inner, instance,
    1442 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1443:5
         |
    1443 | /     writeln!(
    1444 | |         out,
    1445 | |         "void cxxbridge1$box${}$dealloc({} *) noexcept;",
    1446 | |         instance, inner,
    1447 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1448:5
         |
    1448 | /     writeln!(
    1449 | |         out,
    1450 | |         "void cxxbridge1$box${}$drop(::rust::Box<{}> *ptr) noexcept;",
    1451 | |         instance, inner,
    1452 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1462:5
         |
    1462 | /     writeln!(
    1463 | |         out,
    1464 | |         "void cxxbridge1$rust_vec${}$new(::rust::Vec<{}> const *ptr) noexcept;",
    1465 | |         instance, inner,
    1466 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1467:5
         |
    1467 | /     writeln!(
    1468 | |         out,
    1469 | |         "void cxxbridge1$rust_vec${}$drop(::rust::Vec<{}> *ptr) noexcept;",
    1470 | |         instance, inner,
    1471 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1472:5
         |
    1472 | /     writeln!(
    1473 | |         out,
    1474 | |         "::std::size_t cxxbridge1$rust_vec${}$len(::rust::Vec<{}> const *ptr) noexcept;",
    1475 | |         instance, inner,
    1476 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1477:5
         |
    1477 | /     writeln!(
    1478 | |         out,
    1479 | |         "::std::size_t cxxbridge1$rust_vec${}$capacity(::rust::Vec<{}> const *ptr) noexcept;",
    1480 | |         instance, inner,
    1481 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1482:5
         |
    1482 | /     writeln!(
    1483 | |         out,
    1484 | |         "{} const *cxxbridge1$rust_vec${}$data(::rust::Vec<{0}> const *ptr) noexcept;",
    1485 | |         inner, instance,
    1486 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1487:5
         |
    1487 | /     writeln!(
    1488 | |         out,
    1489 | |         "void cxxbridge1$rust_vec${}$reserve_total(::rust::Vec<{}> *ptr, ::std::size_t new_cap) noexcept;",
    1490 | |         instance, inner,
    1491 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1492:5
         |
    1492 | /     writeln!(
    1493 | |         out,
    1494 | |         "void cxxbridge1$rust_vec${}$set_len(::rust::Vec<{}> *ptr, ::std::size_t len) noexcept;",
    1495 | |         instance, inner,
    1496 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1497:5
         |
    1497 | /     writeln!(
    1498 | |         out,
    1499 | |         "void cxxbridge1$rust_vec${}$truncate(::rust::Vec<{}> *ptr, ::std::size_t len) noexcept;",
    1500 | |         instance, inner,
    1501 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1511:5
         |
    1511 | /     writeln!(
    1512 | |         out,
    1513 | |         "{} *Box<{}>::allocation::alloc() noexcept {{",
    1514 | |         inner, inner,
    1515 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1516:5
         |
    1516 |     writeln!(out, "  return cxxbridge1$box${}$alloc();", instance);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1516 -     writeln!(out, "  return cxxbridge1$box${}$alloc();", instance);
    1516 +     writeln!(out, "  return cxxbridge1$box${instance}$alloc();");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1521:5
         |
    1521 | /     writeln!(
    1522 | |         out,
    1523 | |         "void Box<{}>::allocation::dealloc({} *ptr) noexcept {{",
    1524 | |         inner, inner,
    1525 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1526:5
         |
    1526 |     writeln!(out, "  cxxbridge1$box${}$dealloc(ptr);", instance);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1526 -     writeln!(out, "  cxxbridge1$box${}$dealloc(ptr);", instance);
    1526 +     writeln!(out, "  cxxbridge1$box${instance}$dealloc(ptr);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1531:5
         |
    1531 |     writeln!(out, "void Box<{}>::drop() noexcept {{", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1531 -     writeln!(out, "void Box<{}>::drop() noexcept {{", inner);
    1531 +     writeln!(out, "void Box<{inner}>::drop() noexcept {{");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1532:5
         |
    1532 |     writeln!(out, "  cxxbridge1$box${}$drop(this);", instance);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1532 -     writeln!(out, "  cxxbridge1$box${}$drop(this);", instance);
    1532 +     writeln!(out, "  cxxbridge1$box${instance}$drop(this);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1545:5
         |
    1545 |     writeln!(out, "Vec<{}>::Vec() noexcept {{", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1545 -     writeln!(out, "Vec<{}>::Vec() noexcept {{", inner);
    1545 +     writeln!(out, "Vec<{inner}>::Vec() noexcept {{");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1546:5
         |
    1546 |     writeln!(out, "  cxxbridge1$rust_vec${}$new(this);", instance);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1546 -     writeln!(out, "  cxxbridge1$rust_vec${}$new(this);", instance);
    1546 +     writeln!(out, "  cxxbridge1$rust_vec${instance}$new(this);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1551:5
         |
    1551 |     writeln!(out, "void Vec<{}>::drop() noexcept {{", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1551 -     writeln!(out, "void Vec<{}>::drop() noexcept {{", inner);
    1551 +     writeln!(out, "void Vec<{inner}>::drop() noexcept {{");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1552:5
         |
    1552 |     writeln!(out, "  return cxxbridge1$rust_vec${}$drop(this);", instance);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1552 -     writeln!(out, "  return cxxbridge1$rust_vec${}$drop(this);", instance);
    1552 +     writeln!(out, "  return cxxbridge1$rust_vec${instance}$drop(this);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1557:5
         |
    1557 | /     writeln!(
    1558 | |         out,
    1559 | |         "::std::size_t Vec<{}>::size() const noexcept {{",
    1560 | |         inner,
    1561 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1562:5
         |
    1562 |     writeln!(out, "  return cxxbridge1$rust_vec${}$len(this);", instance);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1562 -     writeln!(out, "  return cxxbridge1$rust_vec${}$len(this);", instance);
    1562 +     writeln!(out, "  return cxxbridge1$rust_vec${instance}$len(this);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1567:5
         |
    1567 | /     writeln!(
    1568 | |         out,
    1569 | |         "::std::size_t Vec<{}>::capacity() const noexcept {{",
    1570 | |         inner,
    1571 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1572:5
         |
    1572 | /     writeln!(
    1573 | |         out,
    1574 | |         "  return cxxbridge1$rust_vec${}$capacity(this);",
    1575 | |         instance,
    1576 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1581:5
         |
    1581 |     writeln!(out, "{} const *Vec<{0}>::data() const noexcept {{", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1581 -     writeln!(out, "{} const *Vec<{0}>::data() const noexcept {{", inner);
    1581 +     writeln!(out, "{inner} const *Vec<{inner}>::data() const noexcept {{");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1582:5
         |
    1582 |     writeln!(out, "  return cxxbridge1$rust_vec${}$data(this);", instance);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1582 -     writeln!(out, "  return cxxbridge1$rust_vec${}$data(this);", instance);
    1582 +     writeln!(out, "  return cxxbridge1$rust_vec${instance}$data(this);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1587:5
         |
    1587 | /     writeln!(
    1588 | |         out,
    1589 | |         "void Vec<{}>::reserve_total(::std::size_t new_cap) noexcept {{",
    1590 | |         inner,
    1591 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1592:5
         |
    1592 | /     writeln!(
    1593 | |         out,
    1594 | |         "  return cxxbridge1$rust_vec${}$reserve_total(this, new_cap);",
    1595 | |         instance,
    1596 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1601:5
         |
    1601 | /     writeln!(
    1602 | |         out,
    1603 | |         "void Vec<{}>::set_len(::std::size_t len) noexcept {{",
    1604 | |         inner,
    1605 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1606:5
         |
    1606 | /     writeln!(
    1607 | |         out,
    1608 | |         "  return cxxbridge1$rust_vec${}$set_len(this, len);",
    1609 | |         instance,
    1610 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1615:5
         |
    1615 |     writeln!(out, "void Vec<{}>::truncate(::std::size_t len) {{", inner,);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1615 -     writeln!(out, "void Vec<{}>::truncate(::std::size_t len) {{", inner,);
    1615 +     writeln!(out, "void Vec<{inner}>::truncate(::std::size_t len) {{",);
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1616:5
         |
    1616 | /     writeln!(
    1617 | |         out,
    1618 | |         "  return cxxbridge1$rust_vec${}$truncate(this, len);",
    1619 | |         instance,
    1620 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1658:9
         |
    1658 | /         writeln!(
    1659 | |             out,
    1660 | |             "static_assert(::rust::detail::is_complete<{}>::value, \"definition of {} is required\");",
    1661 | |             inner, definition,
    1662 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1664:5
         |
    1664 | /     writeln!(
    1665 | |         out,
    1666 | |         "static_assert(sizeof(::std::unique_ptr<{}>) == sizeof(void *), \"\");",
    1667 | |         inner,
    1668 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1669:5
         |
    1669 | /     writeln!(
    1670 | |         out,
    1671 | |         "static_assert(alignof(::std::unique_ptr<{}>) == alignof(void *), \"\");",
    1672 | |         inner,
    1673 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1676:5
         |
    1676 | /     writeln!(
    1677 | |         out,
    1678 | |         "void cxxbridge1$unique_ptr${}$null(::std::unique_ptr<{}> *ptr) noexcept {{",
    1679 | |         instance, inner,
    1680 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1681:5
         |
    1681 |     writeln!(out, "  ::new (ptr) ::std::unique_ptr<{}>();", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1681 -     writeln!(out, "  ::new (ptr) ::std::unique_ptr<{}>();", inner);
    1681 +     writeln!(out, "  ::new (ptr) ::std::unique_ptr<{inner}>();");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1687:9
         |
    1687 | /         writeln!(
    1688 | |             out,
    1689 | |             "{} *cxxbridge1$unique_ptr${}$uninit(::std::unique_ptr<{}> *ptr) noexcept {{",
    1690 | |             inner, instance, inner,
    1691 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1692:9
         |
    1692 | /         writeln!(
    1693 | |             out,
    1694 | |             "  {} *uninit = reinterpret_cast<{} *>(new ::rust::MaybeUninit<{}>);",
    1695 | |             inner, inner, inner,
    1696 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1697:9
         |
    1697 |         writeln!(out, "  ::new (ptr) ::std::unique_ptr<{}>(uninit);", inner);
         |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1697 -         writeln!(out, "  ::new (ptr) ::std::unique_ptr<{}>(uninit);", inner);
    1697 +         writeln!(out, "  ::new (ptr) ::std::unique_ptr<{inner}>(uninit);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1703:5
         |
    1703 | /     writeln!(
    1704 | |         out,
    1705 | |         "void cxxbridge1$unique_ptr${}$raw(::std::unique_ptr<{}> *ptr, {} *raw) noexcept {{",
    1706 | |         instance, inner, inner,
    1707 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1708:5
         |
    1708 |     writeln!(out, "  ::new (ptr) ::std::unique_ptr<{}>(raw);", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1708 -     writeln!(out, "  ::new (ptr) ::std::unique_ptr<{}>(raw);", inner);
    1708 +     writeln!(out, "  ::new (ptr) ::std::unique_ptr<{inner}>(raw);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1712:5
         |
    1712 | /     writeln!(
    1713 | |         out,
    1714 | |         "{} const *cxxbridge1$unique_ptr${}$get(::std::unique_ptr<{}> const &ptr) noexcept {{",
    1715 | |         inner, instance, inner,
    1716 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1721:5
         |
    1721 | /     writeln!(
    1722 | |         out,
    1723 | |         "{} *cxxbridge1$unique_ptr${}$release(::std::unique_ptr<{}> &ptr) noexcept {{",
    1724 | |         inner, instance, inner,
    1725 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1730:5
         |
    1730 | /     writeln!(
    1731 | |         out,
    1732 | |         "void cxxbridge1$unique_ptr${}$drop(::std::unique_ptr<{}> *ptr) noexcept {{",
    1733 | |         instance, inner,
    1734 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1737:9
         |
    1737 | /         writeln!(
    1738 | |             out,
    1739 | |             "  ::rust::deleter_if<::rust::detail::is_complete<{}>::value>{{}}(ptr);",
    1740 | |             inner,
    1741 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1763:5
         |
    1763 | /     writeln!(
    1764 | |         out,
    1765 | |         "static_assert(sizeof(::std::shared_ptr<{}>) == 2 * sizeof(void *), \"\");",
    1766 | |         inner,
    1767 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1768:5
         |
    1768 | /     writeln!(
    1769 | |         out,
    1770 | |         "static_assert(alignof(::std::shared_ptr<{}>) == alignof(void *), \"\");",
    1771 | |         inner,
    1772 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1775:5
         |
    1775 | /     writeln!(
    1776 | |         out,
    1777 | |         "void cxxbridge1$shared_ptr${}$null(::std::shared_ptr<{}> *ptr) noexcept {{",
    1778 | |         instance, inner,
    1779 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1780:5
         |
    1780 |     writeln!(out, "  ::new (ptr) ::std::shared_ptr<{}>();", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1780 -     writeln!(out, "  ::new (ptr) ::std::shared_ptr<{}>();", inner);
    1780 +     writeln!(out, "  ::new (ptr) ::std::shared_ptr<{inner}>();");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1786:9
         |
    1786 | /         writeln!(
    1787 | |             out,
    1788 | |             "{} *cxxbridge1$shared_ptr${}$uninit(::std::shared_ptr<{}> *ptr) noexcept {{",
    1789 | |             inner, instance, inner,
    1790 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1791:9
         |
    1791 | /         writeln!(
    1792 | |             out,
    1793 | |             "  {} *uninit = reinterpret_cast<{} *>(new ::rust::MaybeUninit<{}>);",
    1794 | |             inner, inner, inner,
    1795 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1796:9
         |
    1796 |         writeln!(out, "  ::new (ptr) ::std::shared_ptr<{}>(uninit);", inner);
         |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1796 -         writeln!(out, "  ::new (ptr) ::std::shared_ptr<{}>(uninit);", inner);
    1796 +         writeln!(out, "  ::new (ptr) ::std::shared_ptr<{inner}>(uninit);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1802:5
         |
    1802 | /     writeln!(
    1803 | |         out,
    1804 | |         "void cxxbridge1$shared_ptr${}$clone(::std::shared_ptr<{}> const &self, ::std::shared_ptr<{}> *ptr)...
    1805 | |         instance, inner, inner,
    1806 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1807:5
         |
    1807 |     writeln!(out, "  ::new (ptr) ::std::shared_ptr<{}>(self);", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1807 -     writeln!(out, "  ::new (ptr) ::std::shared_ptr<{}>(self);", inner);
    1807 +     writeln!(out, "  ::new (ptr) ::std::shared_ptr<{inner}>(self);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1811:5
         |
    1811 | /     writeln!(
    1812 | |         out,
    1813 | |         "{} const *cxxbridge1$shared_ptr${}$get(::std::shared_ptr<{}> const &self) noexcept {{",
    1814 | |         inner, instance, inner,
    1815 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1820:5
         |
    1820 | /     writeln!(
    1821 | |         out,
    1822 | |         "void cxxbridge1$shared_ptr${}$drop(::std::shared_ptr<{}> *self) noexcept {{",
    1823 | |         instance, inner,
    1824 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1837:5
         |
    1837 | /     writeln!(
    1838 | |         out,
    1839 | |         "static_assert(sizeof(::std::weak_ptr<{}>) == 2 * sizeof(void *), \"\");",
    1840 | |         inner,
    1841 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1842:5
         |
    1842 | /     writeln!(
    1843 | |         out,
    1844 | |         "static_assert(alignof(::std::weak_ptr<{}>) == alignof(void *), \"\");",
    1845 | |         inner,
    1846 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1849:5
         |
    1849 | /     writeln!(
    1850 | |         out,
    1851 | |         "void cxxbridge1$weak_ptr${}$null(::std::weak_ptr<{}> *ptr) noexcept {{",
    1852 | |         instance, inner,
    1853 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1854:5
         |
    1854 |     writeln!(out, "  ::new (ptr) ::std::weak_ptr<{}>();", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1854 -     writeln!(out, "  ::new (ptr) ::std::weak_ptr<{}>();", inner);
    1854 +     writeln!(out, "  ::new (ptr) ::std::weak_ptr<{inner}>();");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1858:5
         |
    1858 | /     writeln!(
    1859 | |         out,
    1860 | |         "void cxxbridge1$weak_ptr${}$clone(::std::weak_ptr<{}> const &self, ::std::weak_ptr<{}> *ptr) noexc...
    1861 | |         instance, inner, inner,
    1862 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1863:5
         |
    1863 |     writeln!(out, "  ::new (ptr) ::std::weak_ptr<{}>(self);", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1863 -     writeln!(out, "  ::new (ptr) ::std::weak_ptr<{}>(self);", inner);
    1863 +     writeln!(out, "  ::new (ptr) ::std::weak_ptr<{inner}>(self);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1867:5
         |
    1867 | /     writeln!(
    1868 | |         out,
    1869 | |         "void cxxbridge1$weak_ptr${}$downgrade(::std::shared_ptr<{}> const &shared, ::std::weak_ptr<{}> *we...
    1870 | |         instance, inner, inner,
    1871 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1872:5
         |
    1872 |     writeln!(out, "  ::new (weak) ::std::weak_ptr<{}>(shared);", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1872 -     writeln!(out, "  ::new (weak) ::std::weak_ptr<{}>(shared);", inner);
    1872 +     writeln!(out, "  ::new (weak) ::std::weak_ptr<{inner}>(shared);");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1876:5
         |
    1876 | /     writeln!(
    1877 | |         out,
    1878 | |         "void cxxbridge1$weak_ptr${}$upgrade(::std::weak_ptr<{}> const &weak, ::std::shared_ptr<{}> *shared...
    1879 | |         instance, inner, inner,
    1880 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1881:5
         |
    1881 | /     writeln!(
    1882 | |         out,
    1883 | |         "  ::new (shared) ::std::shared_ptr<{}>(weak.lock());",
    1884 | |         inner,
    1885 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1889:5
         |
    1889 | /     writeln!(
    1890 | |         out,
    1891 | |         "void cxxbridge1$weak_ptr${}$drop(::std::weak_ptr<{}> *self) noexcept {{",
    1892 | |         instance, inner,
    1893 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1908:5
         |
    1908 | /     writeln!(
    1909 | |         out,
    1910 | |         "::std::vector<{}> *cxxbridge1$std$vector${}$new() noexcept {{",
    1911 | |         inner, instance,
    1912 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1913:5
         |
    1913 |     writeln!(out, "  return new ::std::vector<{}>();", inner);
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
         |
    1913 -     writeln!(out, "  return new ::std::vector<{}>();", inner);
    1913 +     writeln!(out, "  return new ::std::vector<{inner}>();");
         |

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1917:5
         |
    1917 | /     writeln!(
    1918 | |         out,
    1919 | |         "::std::size_t cxxbridge1$std$vector${}$size(::std::vector<{}> const &s) noexcept {{",
    1920 | |         instance, inner,
    1921 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1926:5
         |
    1926 | /     writeln!(
    1927 | |         out,
    1928 | |         "{} *cxxbridge1$std$vector${}$get_unchecked(::std::vector<{}> *s, ::std::size_t pos) noexcept {{",
    1929 | |         inner, instance, inner,
    1930 | |     );
         | |_____^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1936:9
         |
    1936 | /         writeln!(
    1937 | |             out,
    1938 | |             "void cxxbridge1$std$vector${}$push_back(::std::vector<{}> *v, {} *value) noexcept {{",
    1939 | |             instance, inner, inner,
    1940 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1946:9
         |
    1946 | /         writeln!(
    1947 | |             out,
    1948 | |             "void cxxbridge1$std$vector${}$pop_back(::std::vector<{}> *v, {} *out) noexcept {{",
    1949 | |             instance, inner, inner,
    1950 | |         );
         | |_________^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

    warning: variables can be used directly in the `format!` string
        --> gen/cmd/src/gen/write.rs:1951:9
         |
    1951 |         writeln!(out, "  ::new (out) {}(::std::move(v->back()));", inner);
         |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html…
  • Loading branch information
dtolnay committed Nov 16, 2024
1 parent 90c69e9 commit 3c2e2db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen/cmd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
clippy::struct_field_names,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg
clippy::toplevel_ref_arg,
clippy::uninlined_format_args
)]

mod app;
Expand Down

0 comments on commit 3c2e2db

Please sign in to comment.