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
|
|
@ -16,7 +16,7 @@ impl<T> Vector<T> {
|
|||
/// Creates a new [`Vector`] with the given components.
|
||||
///
|
||||
/// [`Vector`]: struct.Vector.html
|
||||
pub fn new(x: T, y: T) -> Self {
|
||||
pub const fn new(x: T, y: T) -> Self {
|
||||
Self { x, y }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue