@@ -136,7 +136,7 @@ impl Builder for B2Builder {
136136 if self . config . bucket . is_empty ( ) {
137137 return Err ( Error :: new ( ErrorKind :: ConfigInvalid , "bucket is empty" )
138138 . with_operation ( "Builder::build" )
139- . with_context ( "service" , Scheme :: B2 ) ) ;
139+ . with_context ( "service" , B2_SCHEME ) ) ;
140140 }
141141
142142 debug ! ( "backend use bucket {}" , & self . config. bucket) ;
@@ -145,7 +145,7 @@ impl Builder for B2Builder {
145145 if self . config . bucket_id . is_empty ( ) {
146146 return Err ( Error :: new ( ErrorKind :: ConfigInvalid , "bucket_id is empty" )
147147 . with_operation ( "Builder::build" )
148- . with_context ( "service" , Scheme :: B2 ) ) ;
148+ . with_context ( "service" , B2_SCHEME ) ) ;
149149 }
150150
151151 debug ! ( "backend bucket_id {}" , & self . config. bucket_id) ;
@@ -155,7 +155,7 @@ impl Builder for B2Builder {
155155 None => Err (
156156 Error :: new ( ErrorKind :: ConfigInvalid , "application_key_id is empty" )
157157 . with_operation ( "Builder::build" )
158- . with_context ( "service" , Scheme :: B2 ) ,
158+ . with_context ( "service" , B2_SCHEME ) ,
159159 ) ,
160160 } ?;
161161
@@ -164,7 +164,7 @@ impl Builder for B2Builder {
164164 None => Err (
165165 Error :: new ( ErrorKind :: ConfigInvalid , "application_key is empty" )
166166 . with_operation ( "Builder::build" )
167- . with_context ( "service" , Scheme :: B2 ) ,
167+ . with_context ( "service" , B2_SCHEME ) ,
168168 ) ,
169169 } ?;
170170
0 commit comments