mirror of
https://github.com/fafhrd91/actix-web
synced 2025-09-01 09:17:19 +02:00
rename .to_async() to .to()
This commit is contained in:
@@ -45,7 +45,7 @@ pub(crate) trait DataFactory {
|
||||
/// }
|
||||
///
|
||||
/// /// Use `Data<T>` extractor to access data in handler.
|
||||
/// fn index(data: web::Data<Mutex<MyData>>) {
|
||||
/// async fn index(data: web::Data<Mutex<MyData>>) {
|
||||
/// let mut data = data.lock().unwrap();
|
||||
/// data.counter += 1;
|
||||
/// }
|
||||
|
Reference in New Issue
Block a user