diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-03 15:59:37 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-03 15:59:37 -0700 |
| commit | cd15eac9cf479feadffc546c05289f071601978a (patch) | |
| tree | aba4196248725e0310a9dc4f2c7808de5ed1e2e3 /src/libcore | |
| parent | 8f840f9ea0a60e05d3d587d64c9e178c0af1e227 (diff) | |
libcore: Add missing from_str.rs
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/from_str.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/from_str.rs b/src/libcore/from_str.rs index ed22846dca8..f14061633d4 100644 --- a/src/libcore/from_str.rs +++ b/src/libcore/from_str.rs @@ -1,3 +1,6 @@ +use option::Option; + trait FromStr { static fn from_str(s: &str) -> Option<self>; } + |
