Skip to content

Commit 538120f

Browse files
committed
fix(mbuild): scope -> add_scope
This is not only more precisely saying what it does, but also doesn't clash with scope parameters on resources ;) (happened in dfareporting)
1 parent 5b5ad43 commit 538120f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mako/lib/mbuild.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ${self._setter_fn(resource, method, m, p, part_prop, ThisType, c)}\
146146
/// Usually there is more than one suitable scope to authorize an operation, some of which may
147147
/// encompass more rights than others. For example, for listing resources, a *read-only* scope will be
148148
/// sufficient, a read-write scope will do as well.
149-
pub fn scope<T>(mut self, scope: T) -> ${ThisType}
149+
pub fn add_scope<T>(mut self, scope: T) -> ${ThisType}
150150
where T: Str {
151151
self.${api.properties.scopes}.insert(scope.as_slice().to_string(), ());
152152
self

0 commit comments

Comments
 (0)