diff --git a/Cargo.toml b/Cargo.toml index bf77d7c..af21ece 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_compilation_db" -version = "1.0.0" +version = "1.0.1" authors = ["László Nagy "] description = "Rust crate to read/write JSON compilation database file." keywords = ["clang", "clang-tooling", "compilation-database"] diff --git a/src/lib.rs b/src/lib.rs index 80410d9..d7f5309 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ mod iterator; pub const DEFAULT_FILE_NAME: &str = "compile_commands.json"; /// Represents an entry of the compilation database. -#[derive(Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct Entry { /// The main translation unit source processed by this compilation step. /// This is used by tools as the key into the compilation database.