diff options
author | Alex <alex@adnab.me> | 2023-03-13 18:09:27 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2023-03-13 18:09:27 +0000 |
commit | 80f64c5015ada9d1e30b38714a7739ef09cdfa3a (patch) | |
tree | 406d209dfb0a083372e28426e21117cb77c515d8 /examples | |
parent | 34aade6ce9ccc9789d045fa11bd6bb8af421849e (diff) | |
parent | 3d77b9c2a101d09159f97d6e808f458d7f8c7737 (diff) | |
download | netapp-80f64c5015ada9d1e30b38714a7739ef09cdfa3a.tar.gz netapp-80f64c5015ada9d1e30b38714a7739ef09cdfa3a.zip |
Merge pull request 'Bump dependent crates to latest' (#7) from jpds/netapp:cargo-updates into main
Reviewed-on: https://git.deuxfleurs.fr/lx/netapp/pulls/7
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, |