Skip to content

Commit c829959

Browse files
rename
1 parent d0b3e37 commit c829959

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

aggregator/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<B: AggregatorBe + 'static> Registrant<BoxedAggregator> for AggregatorRegist
115115
return B::help_msg();
116116
}
117117

118-
fn init2(a: <B::Args as RegistryArgs>::Val) -> BoxedAggregator {
118+
fn init(a: <B::Args as RegistryArgs>::Val) -> BoxedAggregator {
119119
return Box::new(AggregatorInboxImpl::<B>{
120120
a: Arc::new(a),
121121
s: B::State::default(),

clumper/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl<B: ClumperBe + 'static> Registrant<BoxedClumper> for ClumperRegistrant<B> {
7878
return B::help_msg();
7979
}
8080

81-
fn init2(a: <B::Args as RegistryArgs>::Val) -> BoxedClumper {
81+
fn init(a: <B::Args as RegistryArgs>::Val) -> BoxedClumper {
8282
return Box::new(ClumperInboxImpl::<B>{
8383
a: Arc::new(a),
8484
});

deaggregator/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl<B: DeaggregatorBe + 'static> Registrant<BoxedDeaggregator> for Deaggregator
7575
return B::help_msg();
7676
}
7777

78-
fn init2(a: <B::Args as RegistryArgs>::Val) -> BoxedDeaggregator {
78+
fn init(a: <B::Args as RegistryArgs>::Val) -> BoxedDeaggregator {
7979
return Box::new(DeaggregatorInboxImpl::<B>{
8080
a: Arc::new(a),
8181
});

executor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<B: ExecutorBe + 'static> Registrant<BoxedExecutor> for ExecutorRegistrant<B
7777
return B::help_msg();
7878
}
7979

80-
fn init2(_a: ()) -> BoxedExecutor {
80+
fn init(_a: ()) -> BoxedExecutor {
8181
return Box::new(ExecutorInboxImpl {
8282
_b: std::marker::PhantomData::<B>,
8383
});

executor/src/lua/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::Impl;
44

55
fn test_one(i: &str, c: &str, o: &str) {
66
let r = Record::parse(i);
7-
let mut f = Impl::init2(()).parse(c).unwrap_or_else(|_| panic!()).stream(false);
7+
let mut f = Impl::init(()).parse(c).unwrap_or_else(|_| panic!()).stream(false);
88
let r = f(r);
99
assert_eq!(r.deparse(), o);
1010
}

executor/src/r4l/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::Impl;
44

55
fn test_one(input: &str, c: &str, eret: &str, er: &str) {
66
let r = Record::parse(input);
7-
let c = Impl::init2(()).parse(c).unwrap_or_else(|_| panic!());
7+
let c = Impl::init(()).parse(c).unwrap_or_else(|_| panic!());
88

99
{
1010
let mut f = c.stream(false);

operation/src/clumper_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl Optionsable for ClumperOptions {
2121
opt.add(clumper::REGISTRY.help_options("clumper"));
2222
opt.match_single(&["k", "key"], |p, a| {
2323
for a in a.split(',') {
24-
(p.0).0.push(clumper::key::Impl::init2(Arc::from(a)));
24+
(p.0).0.push(clumper::key::Impl::init(Arc::from(a)));
2525
}
2626
return Result::Ok(());
2727
}, "keys to bucket by");

operation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl<B: OperationBe + 'static> Registrant<BoxedOperation> for OperationRegistran
164164
return B::help_msg();
165165
}
166166

167-
fn init2(_a: ()) -> BoxedOperation {
167+
fn init(_a: ()) -> BoxedOperation {
168168
return Box::new(OperationInboxImpl::<B>::default());
169169
}
170170
}

operation/src/sort.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ impl Optionsable for ImplBe2 {
3232
opt.add(SortOptions::help_options());
3333
opt.match_single(&["l", "lex", "lexical"], |p, a| {
3434
for a in a.split(',') {
35-
p.sorts.push(sorts::lexical::Impl::init2(Arc::from(a)));
35+
p.sorts.push(sorts::lexical::Impl::init(Arc::from(a)));
3636
}
3737
return Result::Ok(());
3838
}, "keys to sort by lexically, prefix with minus to sort descending");
3939
opt.match_single(&["n", "num", "numeric"], |p, a| {
4040
for a in a.split(',') {
41-
p.sorts.push(sorts::numeric::Impl::init2(Arc::from(a)));
41+
p.sorts.push(sorts::numeric::Impl::init(Arc::from(a)));
4242
}
4343
return Result::Ok(());
4444
}, "keys to sort by numerically, prefix with minus to sort descending");

registry/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<R: 'static> Registry<R> {
4242
help_msg: I::help_msg(),
4343
init: Box::new(|args| {
4444
let a = I::Args::parse(args)?;
45-
let r = I::init2(a);
45+
let r = I::init(a);
4646
return Result::Ok(r);
4747
}),
4848
});
@@ -198,5 +198,5 @@ pub trait Registrant<R> {
198198
}
199199
fn help_msg() -> &'static str;
200200

201-
fn init2(a: <Self::Args as RegistryArgs>::Val) -> R;
201+
fn init(a: <Self::Args as RegistryArgs>::Val) -> R;
202202
}

0 commit comments

Comments
 (0)