From 8a654554d186d592fb5c9bf2052b86c5641a895f Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Wed, 17 Apr 2019 18:20:46 +0200 Subject: [PATCH] s/with_instruction_capacity/with_capacity --- src/prepare/compile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prepare/compile.rs b/src/prepare/compile.rs index 3ee5360..c8a5954 100644 --- a/src/prepare/compile.rs +++ b/src/prepare/compile.rs @@ -72,7 +72,7 @@ impl FuncValidator for Compiler { fn new(_ctx: &FunctionValidationContext, body: &FuncBody) -> Self { let code_len = body.code().elements().len(); let mut compiler = Compiler { - sink: Sink::with_instruction_capacity(code_len), + sink: Sink::with_capacity(code_len), label_stack: Vec::new(), }; @@ -1108,7 +1108,7 @@ struct Sink { } impl Sink { - fn with_instruction_capacity(capacity: usize) -> Sink { + fn with_capacity(capacity: usize) -> Sink { Sink { ins: isa::Instructions::with_capacity(capacity), labels: Vec::new(),