aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-12 20:25:45 +0200
committerHampusM <hampus@hampusmat.com>2023-09-12 20:25:45 +0200
commit9a7cf8cfd376da09c982606aa79f253319dfe382 (patch)
tree7904c96a59326b6cf3ca33361257d43d5cef6ff9 /src
parentc2d52db297da64b6106ef8420e1593693ab6e082 (diff)
feat: make dependency history new method const
Diffstat (limited to 'src')
-rw-r--r--src/dependency_history.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dependency_history.rs b/src/dependency_history.rs
index 6c02b5c..e097b73 100644
--- a/src/dependency_history.rs
+++ b/src/dependency_history.rs
@@ -26,9 +26,9 @@ impl DependencyHistory
{
/// Returns a new `DependencyHistory`.
#[must_use]
- pub fn new() -> Self
+ pub const fn new() -> Self
{
- Self { inner: vec![] }
+ Self { inner: Vec::new() }
}
}