diff options
| author | 2020-03-06 03:47:40 +0100 | |
|---|---|---|
| committer | 2020-03-06 03:47:40 +0100 | |
| commit | d817fe8e144e8d81979d8f8c8dfb95da8b28e3e9 (patch) | |
| tree | e8d336f35bc9e747f6d6a65d8c751ed261566e98 /core | |
| parent | 3062c190bbcc82f30eaabc086a4e5014e320c8b6 (diff) | |
| parent | f81827c151eba868ab17f35d21a654d48125d0bf (diff) | |
| download | iced-d817fe8e144e8d81979d8f8c8dfb95da8b28e3e9.tar.gz iced-d817fe8e144e8d81979d8f8c8dfb95da8b28e3e9.tar.bz2 iced-d817fe8e144e8d81979d8f8c8dfb95da8b28e3e9.zip | |
Merge pull request #91 from nvzqz/const-all-the-things
Make many functions `const`
Diffstat (limited to '')
| -rw-r--r-- | core/src/vector.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/core/src/vector.rs b/core/src/vector.rs index 1c09ee3e..4c1cbfab 100644 --- a/core/src/vector.rs +++ b/core/src/vector.rs @@ -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 }      }  } | 
