Skip to content

Commit

Permalink
Remove const that would raise the MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Jul 21, 2022
1 parent b811e75 commit 6c2b1ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pineappl/src/sparse_array3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,11 @@ impl<T: Clone + Default + PartialEq> SparseArray3<T> {
self.start = 0;
}

// TODO: make `const` once we support a Rust version where this is stabilized

/// Returns the dimensions of this array.
#[must_use]
pub const fn dimensions(&self) -> (usize, usize, usize) {
pub fn dimensions(&self) -> (usize, usize, usize) {
self.dimensions
}

Expand Down

0 comments on commit 6c2b1ac

Please sign in to comment.