mirror of https://github.com/hannobraun/Fornjot
Update trait method name
This commit is contained in:
parent
27fadd7d8c
commit
c937454439
|
@ -6,7 +6,7 @@ use crate::{
|
|||
/// Update a [`Shell`]
|
||||
pub trait UpdateShell {
|
||||
/// Update a face of the shell
|
||||
fn update_face(
|
||||
fn replace_face(
|
||||
&self,
|
||||
handle: &Handle<Face>,
|
||||
replacement: Handle<Face>,
|
||||
|
@ -17,7 +17,7 @@ pub trait UpdateShell {
|
|||
}
|
||||
|
||||
impl UpdateShell for Shell {
|
||||
fn update_face(
|
||||
fn replace_face(
|
||||
&self,
|
||||
handle: &Handle<Face>,
|
||||
replacement: Handle<Face>,
|
||||
|
|
|
@ -210,7 +210,7 @@ mod tests {
|
|||
[[0., 0., 0.], [0., 1., 0.], [1., 0., 0.], [0., 0., 1.]],
|
||||
&mut services,
|
||||
);
|
||||
let invalid = valid.shell.update_face(
|
||||
let invalid = valid.shell.replace_face(
|
||||
&valid.abc.face,
|
||||
valid
|
||||
.abc
|
||||
|
|
Loading…
Reference in New Issue