diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-01-28 22:07:13 -0800 |
---|---|---|
committer | Ryan Leckey <leckey.ryan@gmail.com> | 2017-01-28 22:07:13 -0800 |
commit | c1bcf6ec5537bfd0fb3f1ee8d93a32aa15031cff (patch) | |
tree | 05fd0b9a2daae99543a9d5ae3a6e15eebc622055 /src/file/nil.rs | |
parent | 7d870758cbd9ad4181471ad40184d1bac1204e1e (diff) |
Propagate Cow into Source
Diffstat (limited to 'src/file/nil.rs')
-rw-r--r-- | src/file/nil.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file/nil.rs b/src/file/nil.rs index c9e799a..f494af4 100644 --- a/src/file/nil.rs +++ b/src/file/nil.rs @@ -1,3 +1,5 @@ +use std::borrow::Cow; + use source::Source; use value::Value; @@ -5,7 +7,7 @@ use value::Value; pub struct Nil {} impl Source for Nil { - fn get(&self, _: &str) -> Option<Value> { + fn get<'a>(&self, _: &str) -> Option<Cow<'a, Value>> { None } } |