Run Dogfood for use_self

This commit is contained in:
Oliver Schneider
2017-08-21 13:32:12 +02:00
parent 3eab44acb1
commit 2430e06a60
17 changed files with 44 additions and 39 deletions

View File

@@ -670,8 +670,8 @@ impl Drop for LimitStack {
}
impl LimitStack {
pub fn new(limit: u64) -> LimitStack {
LimitStack { stack: vec![limit] }
pub fn new(limit: u64) -> Self {
Self { stack: vec![limit] }
}
pub fn limit(&self) -> u64 {
*self.stack.last().expect(