We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9e113 commit 4cce4e4Copy full SHA for 4cce4e4
src/bfield.rs
@@ -32,10 +32,10 @@ impl<'a, T: Clone + DeserializeOwned + Serialize> BField<T> {
32
let mut members = Vec::new();
33
for n in 0..n_secondaries {
34
// panics if filename == ''
35
- let file = Path::with_extension(
+ let file = filename.as_ref().with_file_name(Path::with_extension(
36
Path::file_stem(filename.as_ref()).unwrap().as_ref(),
37
format!("{}.bfd", n),
38
- );
+ ));
39
let params = if n == 0 {
40
Some(other_params.clone())
41
} else {
0 commit comments