@@ -9,8 +9,8 @@ pub mod parsing;
9
9
pub mod enumerations;
10
10
pub mod incompletevector;
11
11
pub mod lease;
12
- use azure:: core:: util:: HeaderMapExt ;
13
- use azure:: storage:: client:: Client ;
12
+ use crate :: azure:: core:: util:: HeaderMapExt ;
13
+ use crate :: azure:: storage:: client:: Client ;
14
14
use base64;
15
15
use std:: fmt:: Debug ;
16
16
pub mod ba512_range;
@@ -20,7 +20,7 @@ use self::modify_conditions::{IfMatchCondition, IfSinceCondition, SequenceNumber
20
20
use std:: fmt;
21
21
use std:: str:: FromStr ;
22
22
pub mod range;
23
- use azure:: storage:: blob:: { BlockList , BlockListType } ;
23
+ use crate :: azure:: storage:: blob:: { BlockList , BlockListType } ;
24
24
use std:: borrow:: Borrow ;
25
25
use url:: percent_encoding;
26
26
pub mod headers;
@@ -33,9 +33,9 @@ use hyper::header::{
33
33
} ;
34
34
use uuid:: Uuid ;
35
35
pub type RequestId = Uuid ;
36
- use azure:: core:: errors:: { AzureError , TraversingError } ;
37
- use azure:: core:: lease:: LeaseId ;
38
- use azure:: core:: parsing:: FromStringOptional ;
36
+ use crate :: azure:: core:: errors:: { AzureError , TraversingError } ;
37
+ use crate :: azure:: core:: lease:: LeaseId ;
38
+ use crate :: azure:: core:: parsing:: FromStringOptional ;
39
39
use http:: request:: Builder ;
40
40
use http:: HeaderMap ;
41
41
use std:: collections:: HashMap ;
@@ -52,9 +52,9 @@ define_encode_set! {
52
52
53
53
macro_rules! response_from_headers {
54
54
( $cn: ident, $( $fh: ident -> $na: ident: $typ: ty) ,+) => {
55
- use azure:: core:: errors:: AzureError ;
55
+ use crate :: azure:: core:: errors:: AzureError ;
56
56
use http:: HeaderMap ;
57
- use azure:: core:: {
57
+ use crate :: azure:: core:: {
58
58
$( $fh, ) +
59
59
} ;
60
60
@@ -566,7 +566,7 @@ where
566
566
T : Borrow < [ u8 ] > ,
567
567
{
568
568
type O ;
569
- fn with_block_list ( self , & ' a BlockList < T > ) -> Self :: O ;
569
+ fn with_block_list ( self , _ : & ' a BlockList < T > ) -> Self :: O ;
570
570
}
571
571
572
572
pub trait BlockListRequired < ' a , T >
@@ -582,7 +582,7 @@ where
582
582
583
583
pub trait LeaseIdSupport < ' a > {
584
584
type O ;
585
- fn with_lease_id ( self , & ' a LeaseId ) -> Self :: O ;
585
+ fn with_lease_id ( self , _ : & ' a LeaseId ) -> Self :: O ;
586
586
}
587
587
588
588
pub trait LeaseIdOption < ' a > {
@@ -605,7 +605,7 @@ pub trait LeaseIdRequired<'a> {
605
605
606
606
pub trait BodySupport < ' a > {
607
607
type O ;
608
- fn with_body ( self , & ' a [ u8 ] ) -> Self :: O ;
608
+ fn with_body ( self , _ : & ' a [ u8 ] ) -> Self :: O ;
609
609
}
610
610
611
611
pub trait BodyRequired < ' a > {
@@ -614,7 +614,7 @@ pub trait BodyRequired<'a> {
614
614
615
615
pub trait ContentMD5Support < ' a > {
616
616
type O ;
617
- fn with_content_md5 ( self , & ' a [ u8 ] ) -> Self :: O ;
617
+ fn with_content_md5 ( self , _ : & ' a [ u8 ] ) -> Self :: O ;
618
618
}
619
619
620
620
pub trait ContentMD5Option < ' a > {
@@ -635,7 +635,7 @@ pub(crate) fn add_content_md5_header<'a>(content_md5: &'a [u8], builder: &mut Bu
635
635
636
636
pub trait RangeSupport < ' a > {
637
637
type O ;
638
- fn with_range ( self , & ' a range:: Range ) -> Self :: O ;
638
+ fn with_range ( self , _ : & ' a range:: Range ) -> Self :: O ;
639
639
}
640
640
641
641
pub trait RangeOption < ' a > {
@@ -658,7 +658,7 @@ pub trait RangeRequired<'a> {
658
658
659
659
pub trait BA512RangeSupport < ' a > {
660
660
type O ;
661
- fn with_ba512_range ( self , & ' a ba512_range:: BA512Range ) -> Self :: O ;
661
+ fn with_ba512_range ( self , _ : & ' a ba512_range:: BA512Range ) -> Self :: O ;
662
662
}
663
663
664
664
pub trait BA512RangeOption < ' a > {
@@ -681,7 +681,7 @@ pub trait BA512RangeRequired<'a> {
681
681
682
682
pub trait LeaseDurationSupport {
683
683
type O ;
684
- fn with_lease_duration ( self , i8 ) -> Self :: O ;
684
+ fn with_lease_duration ( self , _ : i8 ) -> Self :: O ;
685
685
}
686
686
687
687
pub trait LeaseDurationRequired {
@@ -694,7 +694,7 @@ pub trait LeaseDurationRequired {
694
694
695
695
pub trait ProposedLeaseIdSupport < ' a > {
696
696
type O ;
697
- fn with_proposed_lease_id ( self , & ' a LeaseId ) -> Self :: O ;
697
+ fn with_proposed_lease_id ( self , _ : & ' a LeaseId ) -> Self :: O ;
698
698
}
699
699
700
700
pub trait ProposedLeaseIdOption < ' a > {
@@ -802,7 +802,8 @@ pub(crate) fn last_modified_from_headers(headers: &HeaderMap) -> Result<DateTime
802
802
. ok_or_else ( || {
803
803
static LM : HeaderName = LAST_MODIFIED ;
804
804
AzureError :: HeaderNotFound ( LM . as_str ( ) . to_owned ( ) )
805
- } ) ?. to_str ( ) ?;
805
+ } ) ?
806
+ . to_str ( ) ?;
806
807
let last_modified = DateTime :: parse_from_rfc2822 ( last_modified) ?;
807
808
let last_modified = DateTime :: from_utc ( last_modified. naive_utc ( ) , Utc ) ;
808
809
@@ -816,7 +817,8 @@ pub(crate) fn date_from_headers(headers: &HeaderMap) -> Result<DateTime<Utc>, Az
816
817
. ok_or_else ( || {
817
818
static D : HeaderName = DATE ;
818
819
AzureError :: HeaderNotFound ( D . as_str ( ) . to_owned ( ) )
819
- } ) ?. to_str ( ) ?;
820
+ } ) ?
821
+ . to_str ( ) ?;
820
822
let date = DateTime :: parse_from_rfc2822 ( date) ?;
821
823
let date = DateTime :: from_utc ( date. naive_utc ( ) , Utc ) ;
822
824
@@ -838,7 +840,8 @@ pub(crate) fn etag_from_headers(headers: &HeaderMap) -> Result<String, AzureErro
838
840
. ok_or_else ( || {
839
841
static E : HeaderName = ETAG ;
840
842
AzureError :: HeaderNotFound ( E . as_str ( ) . to_owned ( ) )
841
- } ) ?. to_str ( ) ?
843
+ } ) ?
844
+ . to_str ( ) ?
842
845
. to_owned ( ) ;
843
846
844
847
trace ! ( "etag == {:?}" , etag) ;
0 commit comments