diff --git a/giterated-models/src/instance/operations.rs b/giterated-models/src/instance/operations.rs index 7389953..62271f3 100644 --- a/giterated-models/src/instance/operations.rs +++ b/giterated-models/src/instance/operations.rs @@ -162,7 +162,7 @@ impl Object<'_, Instance, B> { &mut self, instance: &Instance, name: &str, - visibility: RepositoryVisibility, + visibility: &RepositoryVisibility, default_branch: &str, owner: &User, ) -> Result> { @@ -170,7 +170,7 @@ impl Object<'_, Instance, B> { instance: Some(instance.clone()), name: name.to_string(), description: None, - visibility, + visibility: visibility.clone(), default_branch: default_branch.to_string(), owner: owner.clone(), })