Skip to content

Commit

Permalink
Remove use of soon-to-be-deprecated unstable feature
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin authored and nosark committed Jul 19, 2020
1 parent 72a60a3 commit 1191db1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion components/script/dom/bindings/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ where
#[allow(unrooted_must_root)]
pub unsafe fn from_box(value: Box<T>) -> Self {
Self {
ptr: Box::into_raw_non_null(value),
ptr: Box::leak(value).into(),
}
}
}
Expand Down
1 change: 0 additions & 1 deletion components/script/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

#![feature(box_into_raw_non_null)]
#![feature(const_fn)]
#![feature(const_transmute)]
#![feature(core_intrinsics)]
Expand Down

0 comments on commit 1191db1

Please sign in to comment.