aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() }
}
}