diff options
Diffstat (limited to 'src/index.rs')
-rw-r--r-- | src/index.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.rs b/src/index.rs index fd38611..d527839 100644 --- a/src/index.rs +++ b/src/index.rs @@ -189,14 +189,14 @@ mod sql { eprintln!("lookup: meta={:?}", meta); metas.push(meta); } else { - let err = ObnamError::DuplicateChunk(id.to_string()); + let err = ObnamError::DuplicateChunk(id.clone()); error!("{}", err); return Err(err.into()); } } if metas.len() == 0 { eprintln!("lookup: no hits"); - return Err(ObnamError::MissingChunk(format!("{}", id)).into()); + return Err(ObnamError::MissingChunk(id.clone()).into()); } let r = metas[0].clone(); Ok(r) |