diff options
| author | troido <troido@protonmail.com> | 2020-02-08 01:29:06 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-08 01:29:06 +0100 |
| commit | 7dfc7956a7c2df9a1df3ea0b32e0c3d2036fa3ce (patch) | |
| tree | b2caba23eab0c2581907584c6035345fc4f399a7 /src/parameter.rs | |
| parent | dba0dc6fec712568dd89ea467780fee7c06997c8 (diff) | |
new macro DSL for making component wrappers
Diffstat (limited to 'src/parameter.rs')
| -rw-r--r-- | src/parameter.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parameter.rs b/src/parameter.rs index 8e45b9c..6d15e93 100644 --- a/src/parameter.rs +++ b/src/parameter.rs @@ -54,9 +54,9 @@ impl Parameter { } } -// pub fn as_string(&self) -> Option<String> { -// Some(self.as_str()?.to_string()) -// } + pub fn as_string(&self) -> Option<String> { + Some(self.as_str()?.to_string()) + } pub fn as_i64(&self) -> Option<i64> { if let Self::Int(num) = self { |
