Skip to content

Commit 02c5cf1

Browse files
committed
don't clone string
1 parent 743de83 commit 02c5cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/archive_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub(crate) fn create<R: io::Read + io::Seek, P: AsRef<Path>>(
6969
conn.execute(
7070
"INSERT INTO files (path, start, end, compression) VALUES (?, ?, ?, ?)",
7171
(
72-
zf.name().to_string(),
72+
zf.name(),
7373
zf.data_start(),
7474
zf.data_start() + zf.compressed_size() - 1,
7575
match zf.compression() {

0 commit comments

Comments
 (0)