Skip to content

Commit c75ec7a

Browse files
committed
refactor(module): change setter names to allign with others
Refs: extphprs#534
1 parent 3c2552e commit c75ec7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builders/module.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl ModuleBuilder<'_> {
8181
/// # Arguments
8282
///
8383
/// * `name` - The name of the extension.
84-
pub fn set_name(mut self, name: impl Into<String>) -> Self {
84+
pub fn name(mut self, name: impl Into<String>) -> Self {
8585
self.name = name.into();
8686
self
8787
}
@@ -91,7 +91,7 @@ impl ModuleBuilder<'_> {
9191
/// # Arguments
9292
///
9393
/// * `version` - The current version of the extension.
94-
pub fn set_version(mut self, version: impl Into<String>) -> Self {
94+
pub fn version(mut self, version: impl Into<String>) -> Self {
9595
self.version = version.into();
9696
self
9797
}

0 commit comments

Comments
 (0)