Skip to content

Commit 8670a7c

Browse files
committed
fix: implement Clone for FormatString
1 parent d6b1c1f commit 8670a7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ impl FormatSpec {
765765
}
766766
}
767767

768-
#[derive(Debug)]
768+
#[derive(Debug, Clone)]
769769
struct Format {
770770
start: usize,
771771
end: usize,
@@ -856,7 +856,7 @@ impl Format {
856856
/// let fmt_str = fmt.to_string_lossy();
857857
/// let owned_str = fmt.into_string();
858858
/// ```
859-
#[derive(Debug)]
859+
#[derive(Debug, Clone)]
860860
pub struct FormatString {
861861
s: String,
862862
fmts: Vec<Format>,

0 commit comments

Comments
 (0)