mirror of
https://github.com/facebookexperimental/reverie.git
synced 2024-11-28 09:24:18 +00:00
Remove need for async_closure unstable feature
Summary: Removes usage of the `async_closure` unstable feature. This brings us one step closer to removing all usage of unstable nightly features, which will allow publishing a crate on https://crates.io. Reviewed By: rrnewton Differential Revision: D41387688 fbshipit-source-id: 136c5c8d19876e732d18dca195e87e3bc2ab7661
This commit is contained in:
parent
b9bd4ec901
commit
ee616643a4
2 changed files with 6 additions and 7 deletions
|
@ -719,7 +719,7 @@ impl Session {
|
|||
|
||||
/// Set a breakpoint. must have an active inferior.
|
||||
async fn set_breakpoint(&self, bkpt: Breakpoint) -> Result<(), Error> {
|
||||
self.with_current_inferior(async move |inferior| {
|
||||
self.with_current_inferior(move |inferior| async move {
|
||||
let request_tx = inferior
|
||||
.request_tx
|
||||
.as_ref()
|
||||
|
@ -744,7 +744,7 @@ impl Session {
|
|||
}
|
||||
|
||||
async fn remove_breakpoint(&self, bkpt: Breakpoint) -> Result<(), Error> {
|
||||
self.with_current_inferior(async move |inferior| {
|
||||
self.with_current_inferior(move |inferior| async move {
|
||||
let request_tx = inferior
|
||||
.request_tx
|
||||
.as_ref()
|
||||
|
@ -770,7 +770,7 @@ impl Session {
|
|||
}
|
||||
|
||||
async fn read_inferior_memory(&self, addr: u64, size: usize) -> Result<Vec<u8>, Error> {
|
||||
self.with_current_inferior(async move |inferior| {
|
||||
self.with_current_inferior(move |inferior| async move {
|
||||
let request_tx = inferior
|
||||
.request_tx
|
||||
.as_ref()
|
||||
|
@ -794,7 +794,7 @@ impl Session {
|
|||
data: Vec<u8>,
|
||||
) -> Result<(), Error> {
|
||||
let data = data.clone();
|
||||
self.with_current_inferior(async move |inferior| {
|
||||
self.with_current_inferior(move |inferior| async move {
|
||||
let request_tx = inferior
|
||||
.request_tx
|
||||
.as_ref()
|
||||
|
@ -812,7 +812,7 @@ impl Session {
|
|||
}
|
||||
|
||||
async fn read_registers(&self) -> Result<CoreRegs, Error> {
|
||||
self.with_current_inferior(async move |inferior| {
|
||||
self.with_current_inferior(move |inferior| async move {
|
||||
let request_tx = inferior
|
||||
.request_tx
|
||||
.as_ref()
|
||||
|
@ -830,7 +830,7 @@ impl Session {
|
|||
}
|
||||
|
||||
async fn write_registers(&self, regs: Vec<u8>) -> Result<(), Error> {
|
||||
self.with_current_inferior(async move |inferior| {
|
||||
self.with_current_inferior(move |inferior| async move {
|
||||
let regs = regs.as_slice();
|
||||
let request_tx = inferior
|
||||
.request_tx
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
//!
|
||||
#![deny(missing_docs)]
|
||||
#![deny(rustdoc::broken_intra_doc_links)]
|
||||
#![feature(async_closure)]
|
||||
#![feature(internal_output_capture)]
|
||||
#![feature(never_type)]
|
||||
#![feature(map_first_last)]
|
||||
|
|
Loading…
Reference in a new issue