File tree 2 files changed +2
-19
lines changed
2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ lazy_static! {
24
24
/// a crate to exist and don't need to test behavior caused by the publish request, inserting
25
25
/// a crate into the database directly by using CrateBuilder will be faster.
26
26
pub struct PublishBuilder {
27
- authors : Vec < String > ,
28
27
badges : HashMap < String , HashMap < String , String > > ,
29
28
categories : Vec < String > ,
30
29
deps : Vec < u:: EncodableCrateDependency > ,
@@ -44,7 +43,6 @@ impl PublishBuilder {
44
43
/// in its tarball.
45
44
pub fn new ( krate_name : & str ) -> Self {
46
45
PublishBuilder {
47
- authors : vec ! [ "foo" . to_string( ) ] ,
48
46
badges : HashMap :: new ( ) ,
49
47
categories : vec ! [ ] ,
50
48
deps : vec ! [ ] ,
@@ -168,18 +166,6 @@ impl PublishBuilder {
168
166
self
169
167
}
170
168
171
- /// Add an author to this crate
172
- pub fn author ( mut self , author : & str ) -> Self {
173
- self . authors . push ( author. into ( ) ) ;
174
- self
175
- }
176
-
177
- /// Remove the authors from this crate. Publish will fail unless authors are reset.
178
- pub fn unset_authors ( mut self ) -> Self {
179
- self . authors = vec ! [ ] ;
180
- self
181
- }
182
-
183
169
pub fn build ( self ) -> ( String , Vec < u8 > ) {
184
170
let new_crate = u:: EncodableCrateUpload {
185
171
name : u:: EncodableCrateName ( self . krate_name . clone ( ) ) ,
Original file line number Diff line number Diff line change @@ -824,8 +824,7 @@ fn license_and_description_required() {
824
824
let crate_to_publish = PublishBuilder :: new ( "foo_metadata" )
825
825
. version ( "1.1.0" )
826
826
. unset_license ( )
827
- . unset_description ( )
828
- . unset_authors ( ) ;
827
+ . unset_description ( ) ;
829
828
830
829
let response = token. enqueue_publish ( crate_to_publish) ;
831
830
assert_eq ! ( response. status( ) , StatusCode :: OK ) ;
@@ -836,9 +835,7 @@ fn license_and_description_required() {
836
835
837
836
let crate_to_publish = PublishBuilder :: new ( "foo_metadata" )
838
837
. version ( "1.1.0" )
839
- . unset_description ( )
840
- . unset_authors ( )
841
- . author ( "" ) ;
838
+ . unset_description ( ) ;
842
839
843
840
let response = token. enqueue_publish ( crate_to_publish) ;
844
841
assert_eq ! ( response. status( ) , StatusCode :: OK ) ;
You can’t perform that action at this time.
0 commit comments