File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ equatable_if_let = "warn"
5959explicit_into_iter_loop = " warn"
6060explicit_iter_loop = " warn"
6161flat_map_option = " warn"
62- from_iter_instead_of_collect = " warn"
6362if_then_some_else_none = " warn"
6463implicit_clone = " warn"
6564if_not_else = " warn"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub fn mean(values: &[u64]) -> u64 {
1010}
1111
1212/// Returns the median of a _sorted_ slice.
13- pub fn median_sorted ( values : & [ u64 ] ) -> u64 {
13+ pub const fn median_sorted ( values : & [ u64 ] ) -> u64 {
1414 if values. is_empty ( ) {
1515 return 0 ;
1616 }
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl CallStack {
8888
8989 /// Returns true if the direct parent chain has its own indentation.
9090 /// Used to determine if commasep should skip its own indentation (to avoid double indent).
91- pub ( crate ) fn has_indented_parent_chain ( & self ) -> bool {
91+ pub ( crate ) const fn has_indented_parent_chain ( & self ) -> bool {
9292 matches ! (
9393 self . stack. as_slice( ) ,
9494 [ .., parent, last] if last. is_nested( ) && parent. is_chained( ) && parent. has_indent
You can’t perform that action at this time.
0 commit comments