From 9e1bbd2fa5bf952001cb9b708c11f50377b90b21 Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Sat, 27 Jul 2024 22:45:49 +0200 Subject: [PATCH] compilation database entry is clone-able --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.