Skip to content

Commit

Permalink
toml transformer does not care about extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Corecii committed Oct 11, 2022
1 parent 873c620 commit f12c020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snapshot_middleware/toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn snapshot_toml(
vfs: &Vfs,
path: &Path,
) -> anyhow::Result<Option<InstanceSnapshot>> {
let name = path.file_name_trim_end(".toml")?;
let name = path.file_name_trim_extension()?;
let contents = vfs.read(path)?;

let value: toml::Value = toml::from_slice(&contents)
Expand Down

0 comments on commit f12c020

Please sign in to comment.