Member xxx produces result of type with enum Result<T>...

适配第三方的swift lib, 从swift旧版本到swift5, 出现这个问题
Missing argument for parameter #1 in call

Result 这样定义:
Screen Shot 2019-09-25 at 02.07.58.png

原来这样使用 ,报错。

Screen Shot 2019-09-25 at 02.07.24.png

其实修改方法很简单。
默认的空参Void给个括号就行。
completionBlock(.success(()),