rust/hg-cpython/src/vfs.rs
changeset 52184 735bf027dd1d
parent 52176 72bc29f01570
child 52185 8d35941689af
equal deleted inserted replaced
52183:82007b8c189e 52184:735bf027dd1d
   168         filename: &Path,
   168         filename: &Path,
   169         check_ambig: bool,
   169         check_ambig: bool,
   170     ) -> Result<hg::vfs::AtomicFile, HgError> {
   170     ) -> Result<hg::vfs::AtomicFile, HgError> {
   171         self.inner_open(filename, true, false, true, true).map(
   171         self.inner_open(filename, true, false, true, true).map(
   172             |(fp, temp_name)| {
   172             |(fp, temp_name)| {
   173                 hg::vfs::AtomicFile::new(
   173                 hg::vfs::AtomicFile::from_file(
   174                     fp,
   174                     fp,
   175                     check_ambig,
   175                     check_ambig,
   176                     temp_name.expect("temp name should exist"),
   176                     temp_name.expect("temp name should exist"),
   177                     filename.to_owned(),
   177                     filename.to_owned(),
   178                 )
   178                 )