File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,8 @@ impl ChargeType {
189
189
pub fn as_str ( & self ) -> & ' static str {
190
190
match self {
191
191
ChargeType :: OneTime => "one-time" ,
192
- ChargeType :: Subscription { .. } => "subscription" ,
193
- ChargeType :: Proration { .. } => "proration" ,
192
+ ChargeType :: Subscription => "subscription" ,
193
+ ChargeType :: Proration => "proration" ,
194
194
ChargeType :: Refund => "refund" ,
195
195
}
196
196
}
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ pub async fn version_create(
188
188
// Handle project type via file extension prediction
189
189
let mut project_type = None ;
190
190
for file_part in & legacy_create. file_parts {
191
- if let Some ( ext) = file_part. split ( '.' ) . last ( ) {
191
+ if let Some ( ext) = file_part. split ( '.' ) . next_back ( ) {
192
192
match ext {
193
193
"mrpack" | "mrpack-primary" => {
194
194
project_type = Some ( "modpack" ) ;
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ pub async fn get_update_from_hash(
191
191
} )
192
192
. sorted ( ) ;
193
193
194
- if let Some ( first) = versions. last ( ) {
194
+ if let Some ( first) = versions. next_back ( ) {
195
195
if !is_visible_version (
196
196
& first. inner ,
197
197
& user_option,
@@ -523,7 +523,7 @@ pub async fn update_individual_files(
523
523
bool
524
524
} )
525
525
. sorted ( )
526
- . last ( ) ;
526
+ . next_back ( ) ;
527
527
528
528
if let Some ( version) = version {
529
529
if is_visible_version (
You can’t perform that action at this time.
0 commit comments