Skip to content

Unnecessary cloning in perform_annotated_read_operation #6753

Closed

Description

@jdm

let blobtype = read_data.blobtype.clone();
let label = read_data.label.clone();

There's no need for this cloning, since we're just moving the values immediately. I think we can just remove the variables entirely and use readdata.whatever when necessary.

Code: components/script/dom/filereader.rs

Activity

  1. added
    A-content/dom
    E-less-complex
    on Jul 25, 2015
  2. farodin91 commented on Jul 26, 2015

    @farodin91
    Contributor

    By closing the issue #6768, i think, this also closed.

  3. farodin91 commented on Aug 5, 2015

    @farodin91
    Contributor

    Will do this.

  4. added a commit that references this issue on Aug 6, 2015
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

    A-content/domE-less-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions