Skip to content

Commit

Permalink
Rename create_with_setup().
Browse files Browse the repository at this point in the history
  • Loading branch information
tolikzinovyev committed Dec 3, 2024
1 parent 508be8b commit 13160bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/centralized_telescope/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ impl Wrapper {
/// Initialize ALBA with `Params`.
pub fn create(params: &Params) -> Self {
let setup = make_setup(params);
Self::create_with_setup(&setup)
Self::create_unsafe(&setup)
}

/// This function is unsafe to use and should be avoided.
/// Initialize ALBA with `Setup`.
pub fn create_with_setup(setup: &Setup) -> Self {
pub fn create_unsafe(setup: &Setup) -> Self {
Self { setup: *setup }
}

Expand Down

0 comments on commit 13160bd

Please sign in to comment.