diff options
author | Jonathan Davies <jpds@protonmail.com> | 2023-01-31 13:37:09 +0000 |
---|---|---|
committer | Jonathan Davies <jpds@protonmail.com> | 2023-02-01 08:59:17 +0000 |
commit | 14ba9a811f9576dbbbb6368357a0a356aeb25cde (patch) | |
tree | c4c085aa82214384ae98e03f6ff0dd58e7e845ff /examples | |
parent | 989193296c980943a7684d93ac0f6965329e547e (diff) | |
download | netapp-14ba9a811f9576dbbbb6368357a0a356aeb25cde.tar.gz netapp-14ba9a811f9576dbbbb6368357a0a356aeb25cde.zip |
basalt: Adapt to use NonZeroUsize for lru change.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/basalt.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/basalt.rs b/examples/basalt.rs index a5a25c3..22a44b5 100644 --- a/examples/basalt.rs +++ b/examples/basalt.rs @@ -1,4 +1,5 @@ use std::io::Write; +use std::num::NonZeroUsize; use std::sync::Arc; use std::time::Duration; @@ -41,7 +42,7 @@ pub struct Opt { view_size: usize, #[structopt(long = "cache-size", short = "c", default_value = "1000")] - cache_size: usize, + cache_size: NonZeroUsize, #[structopt(long = "exchange-interval-secs", short = "x", default_value = "1")] exchange_interval: u64, |