PistonDevelopers / PistonDevelopers/piston

Replace wildcard use with specifics to improve readability

Open
#1,116 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
Dominant language
Rust
Stars
4.7k
Forks
235
Avg merge
1m
Merged PRs (30d)
4

Description

I posted about this on /r/rust and most people seemed to be for replacing
use crate::*;
with
use crate::{Struct, Struct2};
to help improve readability and make it easier for new people to understand the libraries
reddit post

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the repository for use crate::*; and review each wildcard import in context to identify the specific names it provides. Done means the relevant wildcard imports use explicit names instead, while preserving the existing library behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.