@@ -588,8 +588,8 @@ pub async fn get_stream_info(stream_name: Path<String>) -> Result<impl Responder
588588 . get ( & stream_name)
589589 . ok_or ( StreamError :: StreamNotFound ( stream_name. clone ( ) ) ) ?;
590590
591- let stream_info: StreamInfo = StreamInfo {
592- stream_type : stream_meta. stream_type . clone ( ) ,
591+ let stream_info = StreamInfo {
592+ stream_type : stream_meta. stream_type ,
593593 created_at : stream_meta. created_at . clone ( ) ,
594594 first_event_at : stream_first_event_at,
595595 time_partition : stream_meta. time_partition . clone ( ) ,
@@ -626,8 +626,10 @@ pub async fn put_stream_hot_tier(
626626 }
627627 }
628628
629- if PARSEABLE . streams . stream_type ( & stream_name) . unwrap ( )
630- == Some ( StreamType :: Internal . to_string ( ) )
629+ if PARSEABLE
630+ . streams
631+ . stream_type ( & stream_name)
632+ . is_ok_and ( |t| t == StreamType :: Internal )
631633 {
632634 return Err ( StreamError :: Custom {
633635 msg : "Hot tier can not be updated for internal stream" . to_string ( ) ,
@@ -717,8 +719,10 @@ pub async fn delete_stream_hot_tier(
717719 return Err ( StreamError :: HotTierNotEnabled ( stream_name) ) ;
718720 } ;
719721
720- if PARSEABLE . streams . stream_type ( & stream_name) . unwrap ( )
721- == Some ( StreamType :: Internal . to_string ( ) )
722+ if PARSEABLE
723+ . streams
724+ . stream_type ( & stream_name)
725+ . is_ok_and ( |t| t == StreamType :: Internal )
722726 {
723727 return Err ( StreamError :: Custom {
724728 msg : "Hot tier can not be deleted for internal stream" . to_string ( ) ,
0 commit comments