From 7459362e5b4c372054335ee2b0ce0caf83a4f63a Mon Sep 17 00:00:00 2001 From: Tyler Neely Date: Wed, 25 Feb 2015 09:25:53 -0500 Subject: [PATCH] small readme cleanup --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 44a79ba..b305f15 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,9 @@ extern crate rocksdb; use rocksdb::{RocksDBOptions, RocksDB, MergeOperands}; fn concat_merge(new_key: &[u8], existing_val: Option<&[u8]>, - mut operands: &mut MergeOperands) -> Vec { + operands: &mut MergeOperands) -> Vec { let mut result: Vec = Vec::with_capacity(operands.size_hint().0); - match existing_val { - Some(v) => result.push_all(v), - None => (), - } + existing_val.map(|v| { result.push_all(v) }); for op in operands { result.push_all(op); }