mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: upgrade rust version to 1.70 (#2749)
* chore: upgrade rust version to 1.70 * ci: fix wanrings * ci: fix clippy warings
This commit is contained in:
@ -31,7 +31,7 @@ macro_rules! static_flowy_error {
|
||||
impl FlowyError {
|
||||
pub fn new<T: ToString>(code: ErrorCode, msg: T) -> Self {
|
||||
Self {
|
||||
code: code.value() as i32,
|
||||
code: code.value(),
|
||||
msg: msg.to_string(),
|
||||
}
|
||||
}
|
||||
@ -94,7 +94,7 @@ impl FlowyError {
|
||||
impl std::convert::From<ErrorCode> for FlowyError {
|
||||
fn from(code: ErrorCode) -> Self {
|
||||
FlowyError {
|
||||
code: code.value() as i32,
|
||||
code: code.value(),
|
||||
msg: format!("{}", code),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user