@@ -26,10 +26,11 @@ use azure::core::lease::{LeaseAction, LeaseDuration, LeaseId, LeaseState, LeaseS
26
26
use azure:: storage:: client:: Client ;
27
27
use hyper;
28
28
29
- use azure:: storage:: rest_client:: { ContentMD5 , ETag , XMSClientRequestId , XMSLeaseAction ,
30
- XMSLeaseBreakPeriod , XMSLeaseDuration , XMSLeaseDurationSeconds ,
31
- XMSLeaseId , XMSLeaseState , XMSLeaseStatus , XMSProposedLeaseId ,
32
- XMSRange , XMSRangeGetContentMD5 } ;
29
+ use azure:: storage:: rest_client:: {
30
+ ContentMD5 , ETag , XMSClientRequestId , XMSLeaseAction , XMSLeaseBreakPeriod , XMSLeaseDuration ,
31
+ XMSLeaseDurationSeconds , XMSLeaseId , XMSLeaseState , XMSLeaseStatus , XMSProposedLeaseId ,
32
+ XMSRange , XMSRangeGetContentMD5 ,
33
+ } ;
33
34
34
35
use azure:: core:: parsing:: { cast_must, cast_optional, from_azure_time, traverse} ;
35
36
@@ -39,8 +40,9 @@ use azure::core::enumerations;
39
40
use std:: fmt;
40
41
use std:: str:: FromStr ;
41
42
42
- use azure:: core:: errors:: { check_status_extract_body, check_status_extract_headers_and_body,
43
- AzureError , TraversingError } ;
43
+ use azure:: core:: errors:: {
44
+ check_status_extract_body, check_status_extract_headers_and_body, AzureError , TraversingError ,
45
+ } ;
44
46
use azure:: core:: parsing:: FromStringOptional ;
45
47
46
48
use azure:: core:: ba512_range:: BA512Range ;
@@ -51,8 +53,9 @@ use azure::core::range::Range;
51
53
52
54
use hyper:: mime:: Mime ;
53
55
54
- use hyper:: header:: { ContentEncoding , ContentLanguage , ContentLength , ContentType , Headers ,
55
- LastModified } ;
56
+ use hyper:: header:: {
57
+ ContentEncoding , ContentLanguage , ContentLength , ContentType , Headers , LastModified ,
58
+ } ;
56
59
use hyper:: StatusCode ;
57
60
58
61
use base64;
@@ -529,12 +532,12 @@ impl Blob {
529
532
)
530
533
}
531
534
532
- pub fn put < ' b > (
535
+ pub fn put (
533
536
& self ,
534
- c : & ' b Client ,
535
- po : & ' b PutOptions ,
537
+ c : & Client ,
538
+ po : & PutOptions ,
536
539
r : Option < & [ u8 ] > ,
537
- ) -> impl Future < Item = ( ) , Error = AzureError > + ' b {
540
+ ) -> impl Future < Item = ( ) , Error = AzureError > {
538
541
ok ( self . put_create_request ( c, po, r) ) . and_then ( |req| {
539
542
done ( req)
540
543
. from_err ( )
0 commit comments