Update trait method name

This commit is contained in:
Hanno Braun 2023-05-04 12:54:10 +02:00
parent 27fadd7d8c
commit c937454439
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ use crate::{
/// Update a [`Shell`] /// Update a [`Shell`]
pub trait UpdateShell { pub trait UpdateShell {
/// Update a face of the shell /// Update a face of the shell
fn update_face( fn replace_face(
&self, &self,
handle: &Handle<Face>, handle: &Handle<Face>,
replacement: Handle<Face>, replacement: Handle<Face>,
@ -17,7 +17,7 @@ pub trait UpdateShell {
} }
impl UpdateShell for Shell { impl UpdateShell for Shell {
fn update_face( fn replace_face(
&self, &self,
handle: &Handle<Face>, handle: &Handle<Face>,
replacement: Handle<Face>, replacement: Handle<Face>,

View File

@ -210,7 +210,7 @@ mod tests {
[[0., 0., 0.], [0., 1., 0.], [1., 0., 0.], [0., 0., 1.]], [[0., 0., 0.], [0., 1., 0.], [1., 0., 0.], [0., 0., 1.]],
&mut services, &mut services,
); );
let invalid = valid.shell.update_face( let invalid = valid.shell.replace_face(
&valid.abc.face, &valid.abc.face,
valid valid
.abc .abc