@@ -2734,7 +2734,7 @@ fn display_item_long(
27342734
27352735 if config. context {
27362736 output_display. extend ( b" " ) ;
2737- output_display. extend_pad_right ( & item. security_context ( config) , padding. context ) ;
2737+ output_display. extend_pad_right ( item. security_context ( config) , padding. context ) ;
27382738 }
27392739
27402740 // Author is only different from owner on GNU/Hurd, so we reuse
@@ -3186,9 +3186,9 @@ fn display_item_name(
31863186 if config. context {
31873187 if let Some ( pad_count) = prefix_context {
31883188 let security_context = if matches ! ( config. format, Format :: Commas ) {
3189- path. security_context ( config) . to_owned ( )
3189+ path. security_context ( config) . clone ( )
31903190 } else {
3191- pad_left ( path. security_context ( config) , pad_count) . to_owned ( )
3191+ pad_left ( path. security_context ( config) , pad_count) . clone ( )
31923192 } ;
31933193 let old_name = name;
31943194 name = format ! ( "{security_context} " ) . into ( ) ;
@@ -3390,7 +3390,7 @@ fn calculate_padding_collection(
33903390 }
33913391 }
33923392
3393- let context_len = item. security_context . len ( ) ;
3393+ let context_len = item. security_context ( ) . len ( ) ;
33943394 let ( link_count_len, uname_len, group_len, size_len, _major_len, _minor_len) =
33953395 display_dir_entry_size ( item, config, state) ;
33963396 padding_collections. link_count = link_count_len. max ( padding_collections. link_count ) ;
0 commit comments