Skip to content

Commit 9e5880a

Browse files
committed
Bring back const πŸ’ͺ
1 parent abe7db4 commit 9e5880a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

β€ŽCargo.lockβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽCargo.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "historyprovider"
33
description = "historyprovider-rs"
44
license = "MIT"
55
repository = "https://github.com/silicon-heaven/historyprovider-rs"
6-
version = "2.7.0"
6+
version = "2.7.1"
77
edition = "2024"
88

99
[[bin]]

β€Žsrc/lib.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub mod alarm;
3434
pub use crate::util::init_logger;
3535

3636
const fn max_sync_tasks_default() -> usize { 8 }
37-
fn max_journal_dir_size_default() -> Size { Size::from_gibibytes(30) }
37+
const fn max_journal_dir_size_default() -> Size { Size::from_const(30 * size::GiB) }
3838
const fn periodic_sync_interval_default() -> u64 { 60 * 60 } // 1 hour
3939

4040
fn journal_dir_default() -> String {

0 commit comments

Comments
Β (0)