derive(Clone) for CrateName

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-18 16:07:47 +10:00
parent 9e1f873bb5
commit 409f31f0bf
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -2,7 +2,7 @@ use std::convert::Infallible;
use std::fmt; use std::fmt;
use std::str::FromStr; use std::str::FromStr;
#[derive(Debug)] #[derive(Debug, Clone)]
pub struct CrateName { pub struct CrateName {
pub name: String, pub name: String,
pub version: Option<String>, pub version: Option<String>,