Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style/font: use web font style #602

Merged
merged 1 commit into from
Jun 25, 2024

Commits on Jun 24, 2024

  1. style/font: use web font style

    The second String is not used anywhere so the Rust compiler
    will complain like below.
    
    The font-style is actually useful so let's set it.
    
    warning: field `1` is never read
      -->
      /home/adi/workspace/web/deps/plotters/plotters/src/style/font/web.rs:21:37
         |
      21 | pub struct FontDataInternal(String, String);
         |            ----------------         ^^^^^^
         |            field in this struct
         |
         = note: `FontDataInternal` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
         = note: `#[warn(dead_code)]` on by default
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
         |
      21 | pub struct FontDataInternal(String, ());
         |                                     ~~
    
    warning: `plotters` (lib) generated 1 warning
    10ne1 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    70b78b6 View commit details
    Browse the repository at this point in the history