Skip to content

Commit 2378eb7

Browse files
committed
Formatting
1 parent 9283634 commit 2378eb7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/io/msh.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ where
4949
.any(|block| element_block_matches_connectivity::<C, _>(block))
5050
{
5151
return Err(eyre!(
52-
"MSH file does not contain an element block of the requested type ({:?} of dim {})",
52+
"MSH file does not contain an element block of the requested type (type {:?} of with reference/entity dim {})",
5353
C::msh_element_type(),
5454
C::reference_dim()
5555
));
@@ -204,11 +204,15 @@ macro_rules! impl_msh_connectivity {
204204

205205
fn reference_dim() -> usize {
206206
use crate::element::ElementConnectivity;
207-
<$connectivity as ElementConnectivity::<f64>>::ReferenceDim::dim()
207+
<$connectivity as ElementConnectivity<f64>>::ReferenceDim::dim()
208208
}
209209

210210
fn try_connectivity_from_msh_element(element: &mshio::Element<u64>) -> eyre::Result<Self> {
211-
assert_eq!(element.nodes.len(), $num_nodes, "number of msh element nodes have to match with connectivity");
211+
assert_eq!(
212+
element.nodes.len(),
213+
$num_nodes,
214+
"number of msh element nodes have to match with connectivity"
215+
);
212216
let mut nodes = [0; $num_nodes];
213217
for i in 0..$num_nodes {
214218
nodes[i] = element.nodes[i] as usize - 1;

0 commit comments

Comments
 (0)