LINUX.ORG.RU

История изменений

Исправление red75prim, (текущая версия) :

let port = 
    json["server"]["port"]
    .as_u64()
    .ok_or_else(|| err_msg("`server.port` doesn't exist or cannot be represented as `u64`"))?;
Ok(port)

Исходная версия red75prim, :

let port = 
    json["server"]["port"]
    .as_u64()
    .ok_or_else(|| err_msg("`server.port` doesn't exists or cannot be represented as `u64`"))?;
Ok(port)