From 4f8a14ba1afe745c2d3f50077f7c03b8ecc17599 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 21 Jan 2017 16:13:42 +0100 Subject: [PATCH] Impl RStore::path() --- libimagruby/src/store.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libimagruby/src/store.rs b/libimagruby/src/store.rs index 08a94c09..43ee203d 100644 --- a/libimagruby/src/store.rs +++ b/libimagruby/src/store.rs @@ -561,7 +561,12 @@ pub mod store { // A RString // fn path() -> RString { - unimplemented!() + itself.get_data(&*STORE_WRAPPER) + .path() + .clone() + .to_str() + .map(RString::new) + .unwrap_or(RString::new("")) } );