summaryrefslogtreecommitdiffstats
path: root/src/source.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-01-28 22:07:13 -0800
committerRyan Leckey <leckey.ryan@gmail.com>2017-01-28 22:07:13 -0800
commitc1bcf6ec5537bfd0fb3f1ee8d93a32aa15031cff (patch)
tree05fd0b9a2daae99543a9d5ae3a6e15eebc622055 /src/source.rs
parent7d870758cbd9ad4181471ad40184d1bac1204e1e (diff)
Propagate Cow into Source
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/source.rs b/src/source.rs
index 1a8d08f..bc1dd40 100644
--- a/src/source.rs
+++ b/src/source.rs
@@ -1,9 +1,10 @@
use std::error::Error;
+use std::borrow::Cow;
use value::Value;
pub trait Source {
- fn get(&self, key: &str) -> Option<Value>;
+ fn get<'a>(&self, key: &str) -> Option<Cow<'a, Value>>;
}
pub trait SourceBuilder {