cli: implement Copy for DbLocation and Io, as suggested by [Preston](https://github.com/PThorpe92)

This commit is contained in:
Jorge López 2025-01-11 21:50:09 +01:00
parent 5a45df84db
commit b630414722
No known key found for this signature in database
GPG key ID: F8D6CEBC4788D6A1

View file

@ -49,13 +49,13 @@ pub struct Opts {
pub io: Io,
}
#[derive(Clone)]
#[derive(Copy, Clone)]
pub enum DbLocation {
Memory,
Path,
}
#[derive(Clone, ValueEnum)]
#[derive(Copy, Clone, ValueEnum)]
pub enum Io {
Syscall,
#[cfg(all(target_os = "linux", feature = "io_uring"))]