about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorZiad Hatahet <hatahet@gmail.com>2014-09-22 20:50:25 -0700
committerZiad Hatahet <hatahet@gmail.com>2014-10-12 13:07:59 -0700
commit84ce372ceec5322f8bfef82367e03bd7a4de3184 (patch)
treefa51043ad324561c09a61f0471b1c271ae96880b /src/rustllvm/RustWrapper.cpp
parentf7fb0f5a172bcde42293bf64ffafd1e5df4bd0f8 (diff)
downloadrust-84ce372ceec5322f8bfef82367e03bd7a4de3184.tar.gz
rust-84ce372ceec5322f8bfef82367e03bd7a4de3184.zip
libtime: `strftime` and `strptime` return type changed to `Result<String, ParseError>`.
`strftime` currently returns a `String`. This does not indicate that
this function may return an error due to to a malformed format string.
This change introduces a `ParseError` enum which indicates the type of
error that occurred. The return type of `strptime` was also changed to
use this new enum instead of returning `Result<String, String>`. Now,
all instances where `strftime` was used need to have their return value
checked to see if it were valid or not.

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions