Merge pull request #91 from nvzqz/const-all-the-things

Make many functions `const`
This commit is contained in:
Héctor Ramón 2020-03-06 03:47:40 +01:00 committed by GitHub
commit d817fe8e14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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 }
}
}