@@ -9,8 +9,8 @@ pub mod parsing;
99pub mod enumerations;
1010pub mod incompletevector;
1111pub 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 ;
1414use base64;
1515use std:: fmt:: Debug ;
1616pub mod ba512_range;
@@ -20,7 +20,7 @@ use self::modify_conditions::{IfMatchCondition, IfSinceCondition, SequenceNumber
2020use std:: fmt;
2121use std:: str:: FromStr ;
2222pub mod range;
23- use azure:: storage:: blob:: { BlockList , BlockListType } ;
23+ use crate :: azure:: storage:: blob:: { BlockList , BlockListType } ;
2424use std:: borrow:: Borrow ;
2525use url:: percent_encoding;
2626pub mod headers;
@@ -33,9 +33,9 @@ use hyper::header::{
3333} ;
3434use uuid:: Uuid ;
3535pub 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 ;
3939use http:: request:: Builder ;
4040use http:: HeaderMap ;
4141use std:: collections:: HashMap ;
@@ -52,9 +52,9 @@ define_encode_set! {
5252
5353macro_rules! response_from_headers {
5454 ( $cn: ident, $( $fh: ident -> $na: ident: $typ: ty) ,+) => {
55- use azure:: core:: errors:: AzureError ;
55+ use crate :: azure:: core:: errors:: AzureError ;
5656 use http:: HeaderMap ;
57- use azure:: core:: {
57+ use crate :: azure:: core:: {
5858 $( $fh, ) +
5959 } ;
6060
@@ -566,7 +566,7 @@ where
566566 T : Borrow < [ u8 ] > ,
567567{
568568 type O ;
569- fn with_block_list ( self , & ' a BlockList < T > ) -> Self :: O ;
569+ fn with_block_list ( self , _ : & ' a BlockList < T > ) -> Self :: O ;
570570}
571571
572572pub trait BlockListRequired < ' a , T >
@@ -582,7 +582,7 @@ where
582582
583583pub trait LeaseIdSupport < ' a > {
584584 type O ;
585- fn with_lease_id ( self , & ' a LeaseId ) -> Self :: O ;
585+ fn with_lease_id ( self , _ : & ' a LeaseId ) -> Self :: O ;
586586}
587587
588588pub trait LeaseIdOption < ' a > {
@@ -605,7 +605,7 @@ pub trait LeaseIdRequired<'a> {
605605
606606pub trait BodySupport < ' a > {
607607 type O ;
608- fn with_body ( self , & ' a [ u8 ] ) -> Self :: O ;
608+ fn with_body ( self , _ : & ' a [ u8 ] ) -> Self :: O ;
609609}
610610
611611pub trait BodyRequired < ' a > {
@@ -614,7 +614,7 @@ pub trait BodyRequired<'a> {
614614
615615pub trait ContentMD5Support < ' a > {
616616 type O ;
617- fn with_content_md5 ( self , & ' a [ u8 ] ) -> Self :: O ;
617+ fn with_content_md5 ( self , _ : & ' a [ u8 ] ) -> Self :: O ;
618618}
619619
620620pub trait ContentMD5Option < ' a > {
@@ -635,7 +635,7 @@ pub(crate) fn add_content_md5_header<'a>(content_md5: &'a [u8], builder: &mut Bu
635635
636636pub trait RangeSupport < ' a > {
637637 type O ;
638- fn with_range ( self , & ' a range:: Range ) -> Self :: O ;
638+ fn with_range ( self , _ : & ' a range:: Range ) -> Self :: O ;
639639}
640640
641641pub trait RangeOption < ' a > {
@@ -658,7 +658,7 @@ pub trait RangeRequired<'a> {
658658
659659pub trait BA512RangeSupport < ' a > {
660660 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 ;
662662}
663663
664664pub trait BA512RangeOption < ' a > {
@@ -681,7 +681,7 @@ pub trait BA512RangeRequired<'a> {
681681
682682pub trait LeaseDurationSupport {
683683 type O ;
684- fn with_lease_duration ( self , i8 ) -> Self :: O ;
684+ fn with_lease_duration ( self , _ : i8 ) -> Self :: O ;
685685}
686686
687687pub trait LeaseDurationRequired {
@@ -694,7 +694,7 @@ pub trait LeaseDurationRequired {
694694
695695pub trait ProposedLeaseIdSupport < ' a > {
696696 type O ;
697- fn with_proposed_lease_id ( self , & ' a LeaseId ) -> Self :: O ;
697+ fn with_proposed_lease_id ( self , _ : & ' a LeaseId ) -> Self :: O ;
698698}
699699
700700pub trait ProposedLeaseIdOption < ' a > {
@@ -802,7 +802,8 @@ pub(crate) fn last_modified_from_headers(headers: &HeaderMap) -> Result<DateTime
802802 . ok_or_else ( || {
803803 static LM : HeaderName = LAST_MODIFIED ;
804804 AzureError :: HeaderNotFound ( LM . as_str ( ) . to_owned ( ) )
805- } ) ?. to_str ( ) ?;
805+ } ) ?
806+ . to_str ( ) ?;
806807 let last_modified = DateTime :: parse_from_rfc2822 ( last_modified) ?;
807808 let last_modified = DateTime :: from_utc ( last_modified. naive_utc ( ) , Utc ) ;
808809
@@ -816,7 +817,8 @@ pub(crate) fn date_from_headers(headers: &HeaderMap) -> Result<DateTime<Utc>, Az
816817 . ok_or_else ( || {
817818 static D : HeaderName = DATE ;
818819 AzureError :: HeaderNotFound ( D . as_str ( ) . to_owned ( ) )
819- } ) ?. to_str ( ) ?;
820+ } ) ?
821+ . to_str ( ) ?;
820822 let date = DateTime :: parse_from_rfc2822 ( date) ?;
821823 let date = DateTime :: from_utc ( date. naive_utc ( ) , Utc ) ;
822824
@@ -838,7 +840,8 @@ pub(crate) fn etag_from_headers(headers: &HeaderMap) -> Result<String, AzureErro
838840 . ok_or_else ( || {
839841 static E : HeaderName = ETAG ;
840842 AzureError :: HeaderNotFound ( E . as_str ( ) . to_owned ( ) )
841- } ) ?. to_str ( ) ?
843+ } ) ?
844+ . to_str ( ) ?
842845 . to_owned ( ) ;
843846
844847 trace ! ( "etag == {:?}" , etag) ;
0 commit comments