1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Save new group settings in the database

This commit is contained in:
2020-06-26 09:27:32 +02:00
parent 4f2216d835
commit 3f3388cb9a
4 changed files with 34 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
use core::fmt;
use serde::export::Formatter;
use std::error;
use std::error::Error;
use serde::export::Formatter;
/// Simple rust error
///
/// @author Pierre Hubert
@@ -10,7 +11,7 @@ use std::error::Error;
/// Simple result type
pub type ResultExecError<E> = Result<E, ExecError>;
pub type ResultBoxError<E> = Result<E, Box<dyn Error>>;
pub type ResultBoxError<E = ()> = Result<E, Box<dyn Error>>;
#[derive(Debug, Clone)]
pub struct ExecError(pub String);