Skip to content

Commit

Permalink
Make struct name more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 2, 2022
1 parent 7e95572 commit 95bb902
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/fj-kernel/src/algorithms/validate/coherence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn validate_vertex(
let distance = (local_as_global - global).magnitude();

if distance > max_distance {
Err(CoherenceMismatch {
Err(VertexCoherenceMismatch {
local,
local_as_global,
global,
Expand All @@ -39,14 +39,14 @@ pub fn validate_vertex(
pub enum CoherenceIssues {
/// Mismatch between the local and global coordinates of a vertex
#[error("Mismatch between local and global coordinates of vertex")]
Vertex(#[from] CoherenceMismatch),
Vertex(#[from] VertexCoherenceMismatch),
}

/// A mismatch between the local and global forms of a vertex
///
/// Used in [`CoherenceIssues`].
#[derive(Debug, Default, thiserror::Error)]
pub struct CoherenceMismatch {
pub struct VertexCoherenceMismatch {
/// The local form of the object
pub local: Point<1>,

Expand All @@ -57,7 +57,7 @@ pub struct CoherenceMismatch {
pub global: Point<3>,
}

impl fmt::Display for CoherenceMismatch {
impl fmt::Display for VertexCoherenceMismatch {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/validate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod coherence;
mod uniqueness;

pub use self::{
coherence::{CoherenceIssues, CoherenceMismatch},
coherence::{CoherenceIssues, VertexCoherenceMismatch},
uniqueness::UniquenessIssues,
};

Expand Down

0 comments on commit 95bb902

Please sign in to comment.