avoid abusing from/toRawFilePath for non-FilePaths
This commit is contained in:
parent
c992b20c2b
commit
ec1b9da72f
2 changed files with 23 additions and 13 deletions
|
@ -44,10 +44,10 @@ instance ToUUID B.ByteString where
|
|||
| otherwise = UUID b
|
||||
|
||||
instance FromUUID String where
|
||||
fromUUID s = fromRawFilePath (fromUUID s)
|
||||
fromUUID s = decodeBS' (fromUUID s)
|
||||
|
||||
instance ToUUID String where
|
||||
toUUID s = toUUID (toRawFilePath s)
|
||||
toUUID s = toUUID (encodeBS' s)
|
||||
|
||||
-- There is no matching FromUUID U.UUID because a git-annex UUID may
|
||||
-- be NoUUID or perhaps contain something not allowed in a canonical UUID.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue