From 9a7cf8cfd376da09c982606aa79f253319dfe382 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 12 Sep 2023 20:25:45 +0200 Subject: feat: make dependency history new method const --- src/dependency_history.rs | 4 ++-- 1 file 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() } } } -- cgit v1.2.3-18-g5258