Adapt FS to tl::identifier no longer having an invalid value
This commit was merged in pull request #1.
This commit is contained in:
@@ -575,7 +575,6 @@ void CustomFilesystem::convertToPackPath(AbsPath& packPath, const AbsPath& path,
|
||||
|
||||
tl::result<CustomFilesystem::PackId> CustomFilesystem::mount(AbsPath mountPoint, tl::unique_ref<IPack> pack, MountPolicy policy)
|
||||
{
|
||||
PackData data(std::move(pack));
|
||||
|
||||
if (!mountPoint.is_valid())
|
||||
return tl::make_generic_error("Invalid mount point");
|
||||
@@ -585,7 +584,7 @@ tl::result<CustomFilesystem::PackId> CustomFilesystem::mount(AbsPath mountPoint,
|
||||
return tl::make_generic_error("Invalid shadowing (mount point shadowing a file)");
|
||||
|
||||
const PackId id(++s_lastId);
|
||||
data.id = id;
|
||||
PackData data(std::move(pack), id);
|
||||
data.mountPoint = std::move(mountPoint);
|
||||
|
||||
switch (policy)
|
||||
|
||||
Reference in New Issue
Block a user