Closed Bug 1481016 Opened 6 years ago Closed 6 years ago

Use inherent rust methods for to_ascii_uppercase and to_ascii_lowercase instead of std::ascii::AsciiExt

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: o0ignition0o, Assigned: o0ignition0o)

References

Details

Attachments

(1 file)

Since 1.26 std::ascii::AsciiExt::to_ascii_lowercase and std::ascii::AsciiExt::to_ascii_uppercase got deprecated, which causes netwerk helper to fail due to warnings : 


> Compiling netwerk_helper v0.0.1 (file:///[...]mozilla-unified/netwerk/base/rust-helper)
> 0:43.78 warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
>  0:44.24  --> netwerk\base\rust-helper\src\lib.rs:1:5
>  0:44.67   |
>  0:45.01 1 | use std::ascii::AsciiExt;
>  0:45.49   |     ^^^^^^^^^^^^^^^^^^^^
Assignee: nobody → jeremy.lempereur
Blocks: 1481014
Comment on attachment 8997673 [details]
Bug 1481016 - Network, use inherent rust methods instead of deprecated std::ascii:AsciiExt ones,

https://reviewboard.mozilla.org/r/261366/#review268444
Attachment #8997673 - Flags: review?(valentin.gosu) → review+
It seems like I don't have the right SCM level to trigger a try build / land patches.

AFAIR there's a specific flag I can switch on bmo to allow the patch to be autolanded after a while, but I can't find it :/
The flag is checkin-needed?
I'll land the patch for you.
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/6ffbddf32df5
Network, use inherent rust methods instead of deprecated std::ascii:AsciiExt ones, r=valentin
https://hg.mozilla.org/mozilla-central/rev/6ffbddf32df5
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: