Merge pull request #91 from nvzqz/const-all-the-things
Make many functions `const`
This commit is contained in:
commit
d817fe8e14
3 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ impl Limits {
|
|||
///
|
||||
/// [`Limits`]: struct.Limits.html
|
||||
/// [`Size`]: ../struct.Size.html
|
||||
pub fn new(min: Size, max: Size) -> Limits {
|
||||
pub const fn new(min: Size, max: Size) -> Limits {
|
||||
Limits {
|
||||
min,
|
||||
max,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue