Skip to content

Use split_array_ref #3347

Closed as not planned
Closed as not planned

Description

@JonathanWoollett-Light

Use <[T; N]>::split_array_ref to improve src/cpuid/src/intel/mod.rs IntelCpuid::default_brand_string.

Blocked on rust-lang/rust#90091

Activity

  1. 0xkelvin commented on Mar 16, 2023

    @0xkelvin

    can i take this @JonathanWoollett-Light

  2. JonathanWoollett-Light commented on Mar 16, 2023

    @JonathanWoollett-Light
    ContributorAuthor

    @0xkelvin This issue cannot be closed or worked on until rust-lang/rust#90091 is closed and <[T; N]>::split_array_ref is stabilized.

  3. 0xkelvin commented on Mar 16, 2023

    @0xkelvin

    i see

  4. added
    Type: FixIndicates a fix to existing code
    Priority: LowIndicates that an issue or pull request should be resolved behind issues or pull requests labelled `
    and removed on Mar 23, 2023
  5. roypat commented on Nov 13, 2024

    @roypat
    Contributor

    Hey Jonathan, I've had a look at the default_brand_string function, and I honestly don't see where we could use split_array_ref in it, even if it were stabilized (and actually it seems like split_array_ref got removed altogether in rust-lang/rust#117561).

    So I'm closing this for now. Please feel free to reopen if you still think there's a refactor possible in default_brand_string

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

    Priority: LowIndicates that an issue or pull request should be resolved behind issues or pull requests labelled `Status: BlockedIndicates that an issue or pull request cannot currently be worked onType: FixIndicates a fix to existing code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions