Closed Bug 1640985 Opened 6 years ago Closed 6 years ago

rust 1.45 must-use error about mem::replace in calc.rs

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: away, Assigned: emilio)

References

Details

Attachments

(1 file)

1:34.65    --> servo\components\style\values\generics\calc.rs:340:17
 1:34.65     |
 1:34.65 340 |                 mem::replace(self, result);
 1:34.65     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:34.65 ...
 1:34.65 386 |                     return replace_self_with!(&mut **max);
 1:34.65     |                            ------------------------------ in this macro invocation
 1:34.65     |
 1:34.65     = note: if you don't need the old value, you can just assign the new value directly
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Attachment #9151815 - Attachment description: Bug 1640985 - Remove useless mem::replace call. r=#style → Bug 1640985 - Remove two useless mem::replace calls. r=#style

Marking this as normal severity, as it looks like it's already handled.

Severity: -- → S3
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6cc8ef8beb30 Remove two useless mem::replace calls. r=boris
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: