Commit Graph
6 Commits
Author SHA1 Message Date
Rebecca Turner bf9a2aeeba Fix mismatched_lifetime_syntaxes warnings
Fixes a bunch of warnings like this:

```
warning: hiding a lifetime that's elided elsewhere is confusing
   --> window/src/os/macos/window.rs:670:23
    |
670 |     fn display_handle(&self) -> Result<DisplayHandle, HandleError> {
    |                       ^^^^^            ------------- the same lifetime is hidden here
    |                       |
    |                       the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
670 |     fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError> {
    |                                                     ++++
```

This lint was added in Rust 1.89: https://github.com/rust-lang/rust/issues/141787
2025-09-09 07:05:12 -07:00
Wez Furlong 74015a95c7 fix some warnings with rust 1.83
It's complaining about non-local impls and elided lifetimes
that have names.

I don't recall why I thought I needed these "dummy" enclosing
scopes, and they are most likely cargo-cult copypasta from
some other derive implementation that I used as inspiration.
2024-11-28 21:32:15 -07:00
cyc f671a9ab97 remove redundant imports. 2024-02-08 08:59:47 -07:00
cyc 8e5957b92f add unit tests for JSON/YAML/TOML parsers. 2024-02-08 08:59:47 -07:00
cyc 8dc4ba7ad1 add *_encode_pretty variants for TOML and JSON. 2024-02-08 08:59:47 -07:00
cyc 8596422abf add YAML/TOML serialization/deserialization feature 2024-02-08 08:59:47 -07:00