mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 08:34:13 +02:00
update dependencies
This commit is contained in:
parent
b388c2ccf0
commit
96954dc116
4 changed files with 15 additions and 16 deletions
|
|
@ -1,5 +1,6 @@
|
|||
mod nc;
|
||||
|
||||
use miette::Diagnostic;
|
||||
#[cfg(feature = "redis-connect")]
|
||||
use redis::{ConnectionAddr, ConnectionInfo};
|
||||
#[cfg(feature = "redis-connect")]
|
||||
|
|
@ -74,9 +75,10 @@ impl RedisConfig {
|
|||
|
||||
type Result<T, E = Error> = std::result::Result<T, E>;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
pub enum Error {
|
||||
#[error("{0:#}")]
|
||||
#[error(transparent)]
|
||||
#[diagnostic(transparent)]
|
||||
Php(PhpParseError),
|
||||
#[error("Provided config file doesn't seem to be a nextcloud config file: {0:#}")]
|
||||
NotAConfig(#[from] NotAConfigError),
|
||||
|
|
@ -90,8 +92,9 @@ pub enum Error {
|
|||
NoUrl,
|
||||
}
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
#[error("Error while parsing '{path}':\n{err}")]
|
||||
#[diagnostic(forward(err))]
|
||||
pub struct PhpParseError {
|
||||
err: php_literal_parser::ParseError,
|
||||
path: PathBuf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue