This commit is contained in:
Rob Ede 2020-12-27 03:58:35 +00:00
parent 87bca22cc7
commit 6ef3549ab6
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
1 changed files with 2 additions and 3 deletions

View File

@ -5,9 +5,8 @@ use core::{
task::{Context, Poll},
};
use pin_project_lite::pin_project;
use futures_core::ready;
use pin_project_lite::pin_project;
use super::{IntoService, IntoServiceFactory, Service, ServiceFactory};
@ -204,7 +203,7 @@ where
let this = self.project();
let svc = ready!(this.fut.poll(cx))?;
Poll::Ready(Ok(Apply::new(svc, Option::take(this.wrap_fn).unwrap())))
Poll::Ready(Ok(Apply::new(svc, this.wrap_fn.take().unwrap())))
}
}