option: rewrite the API to use composition

This commit is contained in:
Daniel Micay
2013-09-20 02:08:47 -04:00
parent f647ccc79c
commit 6a90e80b62
80 changed files with 244 additions and 277 deletions

View File

@@ -83,7 +83,7 @@ impl AttrMetaMethods for MetaItem {
}
fn name_str_pair(&self) -> Option<(@str, @str)> {
self.value_str().map_move(|s| (self.name(), s))
self.value_str().map(|s| (self.name(), s))
}
}