Skip to content

Shorten <Foo as Bar>::quux to Foo::quux #5

Description

@benfrankel

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:

// Before:
Pipe(<HealthConfig as Config>::progress, <<HealthConfig as Config>>::progress as ProgressReturningSystem<Progress, (IsFunctionSystem, fn(ConfigRef<HealthConfig>, Res<AssetServer>) -> Progress)>>::track_progress<BevyState<Screen>>::{{closure}})

// After:
Pipe(HealthConfig::progress, HealthConfig::progress::track_progress<BevyState<Screen>>::{{closure}})

This probably applies to type names as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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