bevyengine / bevyengine/disqualified

Shorten `<Foo as Bar>::quux` to `Foo::quux`

Open
#5 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12
Forks
4
Avg merge
4h 23m
Merged PRs (30d)
4

Description

I want to use `disqualified` to display system names while stepping. `system.name()` is the fully qualified name, which is unreasonably verbose. `ShortName::from(&*system.name())` helps a lot, but it leaves some system names that could be shortened further.

For example:

```rs
// Before:
Pipe(::progress, <>::progress as ProgressReturningSystem, Res) -> Progress)>>::track_progress>::{{closure}})

// After:
Pipe(HealthConfig::progress, HealthConfig::progress::track_progress>::{{closure}})
```

This probably applies to type names as well.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.