From 14ba9a811f9576dbbbb6368357a0a356aeb25cde Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Tue, 31 Jan 2023 13:37:09 +0000 Subject: basalt: Adapt to use NonZeroUsize for lru change. --- examples/basalt.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') 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, -- cgit v1.2.3