libstd: Implement read_managed_str for the JSON deserialiser.
The FIXME is an underlying issue (a core::at_str library) that this doesn't address.
This commit is contained in:
parent
a55ea48d2b
commit
76dc7818ea
@ -782,8 +782,11 @@ pub impl Deserializer: serialization::Deserializer {
|
||||
}
|
||||
|
||||
fn read_managed_str(&self) -> @str {
|
||||
// FIXME(#3604): There's no way to convert from a ~str to a @str.
|
||||
fail ~"read_managed_str()";
|
||||
debug!("read_managed_str");
|
||||
match *self.pop() {
|
||||
String(ref s) => s.to_managed(),
|
||||
_ => fail ~"not a string"
|
||||
}
|
||||
}
|
||||
|
||||
fn read_owned<T>(&self, f: fn() -> T) -> T {
|
||||
|
Loading…
x
Reference in New Issue
Block a user