diff --git a/pages/db/enum.ConnectionOptions.html b/pages/db/enum.ConnectionOptions.html index d6b189e..9bb7b9e 100644 --- a/pages/db/enum.ConnectionOptions.html +++ b/pages/db/enum.ConnectionOptions.html @@ -1,10 +1,10 @@ -ConnectionOptions in pages::db - Rust
pub enum ConnectionOptions {
+ConnectionOptions in pages::db - Rust
pub enum ConnectionOptions {
     Fresh(Fresh),
     Existing(Conn),
 }
Expand description

Connect to databse

Variants

Fresh(Fresh)

fresh connection

Existing(Conn)

existing connection

-

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/db/enum.Login.html b/pages/db/enum.Login.html index d58f98c..5351d12 100644 --- a/pages/db/enum.Login.html +++ b/pages/db/enum.Login.html @@ -1,12 +1,12 @@ -Login in pages::db - Rust
pub enum Login<'a> {
+Login in pages::db - Rust
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/db/fn.get_db.html b/pages/db/fn.get_db.html index 5fd623f..9e43462 100644 --- a/pages/db/fn.get_db.html +++ b/pages/db/fn.get_db.html @@ -1 +1 @@ -get_db in pages::db - Rust

Function pages::db::get_db

source · []
pub async fn get_db(settings: &Settings) -> Database
\ No newline at end of file +get_db in pages::db - Rust

Function pages::db::get_db

source · []
pub async fn get_db(settings: &Settings) -> Database
\ No newline at end of file diff --git a/pages/db/fn.map_register_err.html b/pages/db/fn.map_register_err.html index e87fbc0..87482f4 100644 --- a/pages/db/fn.map_register_err.html +++ b/pages/db/fn.map_register_err.html @@ -1,2 +1,2 @@ -map_register_err in pages::db - Rust
fn map_register_err(e: Error) -> ServiceError
Expand description

map postgres errors to ServiceError types

+map_register_err in pages::db - Rust
fn map_register_err(e: Error) -> ServiceError
Expand description

map postgres errors to ServiceError types

\ No newline at end of file diff --git a/pages/db/fn.map_row_not_found_err.html b/pages/db/fn.map_row_not_found_err.html index 948d049..dc72adb 100644 --- a/pages/db/fn.map_row_not_found_err.html +++ b/pages/db/fn.map_row_not_found_err.html @@ -1,2 +1,2 @@ -map_row_not_found_err in pages::db - Rust
pub fn map_row_not_found_err(
    e: Error,
    row_not_found: ServiceError
) -> ServiceError
Expand description

map custom row not found error to DB error

+map_row_not_found_err in pages::db - Rust
pub fn map_row_not_found_err(
    e: Error,
    row_not_found: ServiceError
) -> ServiceError
Expand description

map custom row not found error to DB error

\ No newline at end of file diff --git a/pages/db/fn.now_unix_time_stamp.html b/pages/db/fn.now_unix_time_stamp.html index c900e4a..a93892c 100644 --- a/pages/db/fn.now_unix_time_stamp.html +++ b/pages/db/fn.now_unix_time_stamp.html @@ -1 +1 @@ -now_unix_time_stamp in pages::db - Rust
fn now_unix_time_stamp() -> OffsetDateTime
\ No newline at end of file +now_unix_time_stamp in pages::db - Rust
fn now_unix_time_stamp() -> OffsetDateTime
\ No newline at end of file diff --git a/pages/db/index.html b/pages/db/index.html index 756426f..3ad8f13 100644 --- a/pages/db/index.html +++ b/pages/db/index.html @@ -1 +1 @@ -pages::db - Rust

Module pages::db

source · []

Structs

Use an existing database pool
InnerSite 🔒
type encapsulating username and hashed password of a user
Data required to register a new user
Data required to add a new site
data required to update them email of a user

Enums

Connect to databse
types of credentials used as identifiers during login

Functions

map postgres errors to ServiceError types
map custom row not found error to DB error
\ No newline at end of file +pages::db - Rust

Module pages::db

source · []

Structs

Use an existing database pool
InnerSite 🔒
type encapsulating username and hashed password of a user
Data required to register a new user
Data required to add a new site
data required to update them email of a user

Enums

Connect to databse
types of credentials used as identifiers during login

Functions

map postgres errors to ServiceError types
map custom row not found error to DB error
\ No newline at end of file diff --git a/pages/db/struct.Conn.html b/pages/db/struct.Conn.html index de41f9f..22f9e10 100644 --- a/pages/db/struct.Conn.html +++ b/pages/db/struct.Conn.html @@ -1,4 +1,4 @@ -Conn in pages::db - Rust

Struct pages::db::Conn

source · []
pub struct Conn(pub PgPool);
Expand description

Use an existing database pool

+Conn in pages::db - Rust

Struct pages::db::Conn

source · []
pub struct Conn(pub PgPool);
Expand description

Use an existing database pool

Tuple Fields

0: PgPool

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an diff --git a/pages/db/struct.Database.html b/pages/db/struct.Database.html index 0252efe..978c697 100644 --- a/pages/db/struct.Database.html +++ b/pages/db/struct.Database.html @@ -1,16 +1,16 @@ -Database in pages::db - Rust
pub struct Database {
+Database in pages::db - Rust
pub struct Database {
     pub pool: PgPool,
-}

Fields

pool: PgPool

Implementations

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

check if hostname exists

-

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

pool: PgPool

Implementations

register a new user

+

delete a user

+

check if username exists

+

get user email

+

check if email exists

+

update a user’s email

+

get a user’s password

+

update user’s password

+

update username

+

check if hostname exists

+

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/db/struct.Fresh.html b/pages/db/struct.Fresh.html index d9c4f5a..80bf712 100644 --- a/pages/db/struct.Fresh.html +++ b/pages/db/struct.Fresh.html @@ -1,4 +1,4 @@ -Fresh in pages::db - Rust
pub struct Fresh {
+Fresh in pages::db - Rust
pub struct Fresh {
     pub pool_options: PgPoolOptions,
     pub disable_logging: bool,
     pub url: String,
diff --git a/pages/db/struct.InnerSite.html b/pages/db/struct.InnerSite.html
index f475f7f..422d1b1 100644
--- a/pages/db/struct.InnerSite.html
+++ b/pages/db/struct.InnerSite.html
@@ -1,9 +1,9 @@
-InnerSite in pages::db - Rust
struct InnerSite {
+InnerSite in pages::db - Rust
struct InnerSite {
     site_secret: String,
     repo_url: String,
     branch: String,
     hostname: String,
-}

Fields

site_secret: Stringrepo_url: Stringbranch: Stringhostname: String

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

site_secret: Stringrepo_url: Stringbranch: Stringhostname: String

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/db/struct.NameHash.html b/pages/db/struct.NameHash.html index 1e3f69a..e358d44 100644 --- a/pages/db/struct.NameHash.html +++ b/pages/db/struct.NameHash.html @@ -1,12 +1,12 @@ -NameHash in pages::db - Rust
pub struct NameHash {
+NameHash in pages::db - Rust
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Fields

username: &'a str

username of new user

hash: &'a str

hashed password of new use

email: &'a str

Optionally, email of new use

-

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/db/struct.Site.html b/pages/db/struct.Site.html index 882f3d6..72464aa 100644 --- a/pages/db/struct.Site.html +++ b/pages/db/struct.Site.html @@ -1,13 +1,13 @@ -Site in pages::db - Rust

Struct pages::db::Site

source · []
pub struct Site {
+Site in pages::db - Rust

Struct pages::db::Site

source · []
pub struct Site {
     pub site_secret: String,
     pub repo_url: String,
     pub branch: String,
     pub hostname: String,
     pub owner: String,
 }
Expand description

Data required to add a new site

-

Fields

site_secret: Stringrepo_url: Stringbranch: Stringhostname: Stringowner: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +

Fields

site_secret: Stringrepo_url: Stringbranch: Stringhostname: Stringowner: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/db/struct.UpdateEmail.html b/pages/db/struct.UpdateEmail.html index 749b170..b20cb98 100644 --- a/pages/db/struct.UpdateEmail.html +++ b/pages/db/struct.UpdateEmail.html @@ -1,12 +1,12 @@ -UpdateEmail in pages::db - Rust
pub struct UpdateEmail<'a> {
+UpdateEmail in pages::db - Rust
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/deploy/fn.services.html b/pages/deploy/fn.services.html index efa7c13..277414f 100644 --- a/pages/deploy/fn.services.html +++ b/pages/deploy/fn.services.html @@ -1 +1 @@ -services in pages::deploy - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in pages::deploy - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/pages/deploy/index.html b/pages/deploy/index.html index 770a1fb..25b6e56 100644 --- a/pages/deploy/index.html +++ b/pages/deploy/index.html @@ -1 +1 @@ -pages::deploy - Rust
\ No newline at end of file +pages::deploy - Rust
\ No newline at end of file diff --git a/pages/deploy/routes/index.html b/pages/deploy/routes/index.html index 12490d5..415f36d 100644 --- a/pages/deploy/routes/index.html +++ b/pages/deploy/routes/index.html @@ -1 +1 @@ -pages::deploy::routes - Rust
\ No newline at end of file +pages::deploy::routes - Rust
\ No newline at end of file diff --git a/pages/deploy/routes/struct.Deploy.html b/pages/deploy/routes/struct.Deploy.html index ada65e2..6050dc4 100644 --- a/pages/deploy/routes/struct.Deploy.html +++ b/pages/deploy/routes/struct.Deploy.html @@ -1,7 +1,7 @@ -Deploy in pages::deploy::routes - Rust
pub struct Deploy {
+Deploy in pages::deploy::routes - Rust
pub struct Deploy {
     pub update: &'static str,
     pub info: &'static str,
-}

Fields

update: &'static strinfo: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

update: &'static strinfo: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/deploy/struct.DeployEvent.html b/pages/deploy/struct.DeployEvent.html index 92cc38a..3a71255 100644 --- a/pages/deploy/struct.DeployEvent.html +++ b/pages/deploy/struct.DeployEvent.html @@ -1,7 +1,7 @@ -DeployEvent in pages::deploy - Rust
pub struct DeployEvent {
+DeployEvent in pages::deploy - Rust
pub struct DeployEvent {
     pub secret: String,
     pub branch: String,
-}

Fields

secret: Stringbranch: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

secret: Stringbranch: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/deploy/struct.DeployInfo.html b/pages/deploy/struct.DeployInfo.html index 1dd19e1..1c2caa1 100644 --- a/pages/deploy/struct.DeployInfo.html +++ b/pages/deploy/struct.DeployInfo.html @@ -1,10 +1,10 @@ -DeployInfo in pages::deploy - Rust
pub struct DeployInfo {
+DeployInfo in pages::deploy - Rust
pub struct DeployInfo {
     pub head: String,
     pub remote: String,
     pub commit: String,
-}

Fields

head: Stringremote: Stringcommit: String

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +}

Fields

head: Stringremote: Stringcommit: String

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/deploy/struct.DeploySecret.html b/pages/deploy/struct.DeploySecret.html index 273f33e..6247c0f 100644 --- a/pages/deploy/struct.DeploySecret.html +++ b/pages/deploy/struct.DeploySecret.html @@ -1,8 +1,8 @@ -DeploySecret in pages::deploy - Rust
pub struct DeploySecret {
+DeploySecret in pages::deploy - Rust
pub struct DeploySecret {
     pub secret: String,
-}

Fields

secret: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +}

Fields

secret: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/deploy/struct.deploy_info.html b/pages/deploy/struct.deploy_info.html index a486651..c1b2f65 100644 --- a/pages/deploy/struct.deploy_info.html +++ b/pages/deploy/struct.deploy_info.html @@ -1,4 +1,4 @@ -deploy_info in pages::deploy - Rust
pub struct deploy_info;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+deploy_info in pages::deploy - Rust
pub struct deploy_info;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/deploy/struct.update.html b/pages/deploy/struct.update.html index 65dd06c..d373611 100644 --- a/pages/deploy/struct.update.html +++ b/pages/deploy/struct.update.html @@ -1,4 +1,4 @@ -update in pages::deploy - Rust
pub struct update;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+update in pages::deploy - Rust
pub struct update;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/git/fn.read_file_inner.html b/pages/git/fn.read_file_inner.html index d958f87..b7a1aa4 100644 --- a/pages/git/fn.read_file_inner.html +++ b/pages/git/fn.read_file_inner.html @@ -1 +1 @@ -read_file_inner in pages::git - Rust
fn read_file_inner(
    repo: &Repository,
    path: &str,
    tree: &Tree<'_>
) -> Result<FileInfo, ServiceError>
\ No newline at end of file +read_file_inner in pages::git - Rust
fn read_file_inner(
    repo: &Repository,
    path: &str,
    tree: &Tree<'_>
) -> Result<FileInfo, ServiceError>
\ No newline at end of file diff --git a/pages/git/index.html b/pages/git/index.html index 4775da7..5a2049b 100644 --- a/pages/git/index.html +++ b/pages/git/index.html @@ -1,4 +1,4 @@ -pages::git - Rust

Module pages::git

source · []

Structs

Enums

A FileMode represents the kind of tree entries used by git. It +pages::git - Rust

Module pages::git

source · []

Structs

Enums

A FileMode represents the kind of tree entries used by git. It resembles regular file systems modes, although FileModes are considerably simpler (there are not so many), and there are some, like Submodule that has no file system equivalent.

Functions

Please note that this method expects path to not contain any spaces diff --git a/pages/page_config/index.html b/pages/page_config/index.html index f22fd75..1155653 100644 --- a/pages/page_config/index.html +++ b/pages/page_config/index.html @@ -1 +1 @@ -pages::page_config - Rust
\ No newline at end of file +pages::page_config - Rust
\ No newline at end of file diff --git a/pages/page_config/struct.Config.html b/pages/page_config/struct.Config.html index 3f2be6d..2fc60dd 100644 --- a/pages/page_config/struct.Config.html +++ b/pages/page_config/struct.Config.html @@ -4,7 +4,7 @@ pub forms: Option<Forms>, pub image_compression: Option<ImageCompression>, pub redirects: Option<Vec<Redirects>>, -}

Fields

source: Sourcedomains: Option<Vec<String>>forms: Option<Forms>image_compression: Option<ImageCompression>redirects: Option<Vec<Redirects>>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used +}

Fields

source: Sourcedomains: Option<Vec<String>>forms: Option<Forms>image_compression: Option<ImageCompression>redirects: Option<Vec<Redirects>>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an diff --git a/pages/pages/fn.auth_ctx.html b/pages/pages/fn.auth_ctx.html index 2211b2a..0c07edf 100644 --- a/pages/pages/fn.auth_ctx.html +++ b/pages/pages/fn.auth_ctx.html @@ -1 +1 @@ -auth_ctx in pages::pages - Rust
pub fn auth_ctx(username: Option<&str>, s: &Settings) -> Context
\ No newline at end of file +auth_ctx in pages::pages - Rust
pub fn auth_ctx(_username: Option<&str>, s: &Settings) -> Context
\ No newline at end of file diff --git a/pages/settings/enum.DBType.html b/pages/settings/enum.DBType.html index 811192c..948ca12 100644 --- a/pages/settings/enum.DBType.html +++ b/pages/settings/enum.DBType.html @@ -1,8 +1,8 @@ -DBType in pages::settings - Rust
pub enum DBType {
+DBType in pages::settings - Rust
pub enum DBType {
     Postgres,
-}

Variants

Postgres

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used +}

Variants

Postgres

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/settings/index.html b/pages/settings/index.html index fa9f092..70d24a2 100644 --- a/pages/settings/index.html +++ b/pages/settings/index.html @@ -1 +1 @@ -pages::settings - Rust
\ No newline at end of file +pages::settings - Rust
\ No newline at end of file diff --git a/pages/settings/struct.Database.html b/pages/settings/struct.Database.html index 6b749e6..6e65d8b 100644 --- a/pages/settings/struct.Database.html +++ b/pages/settings/struct.Database.html @@ -1,8 +1,8 @@ -Database in pages::settings - Rust
pub struct Database {
+Database in pages::settings - Rust
pub struct Database {
     pub url: String,
     pub pool: u32,
     pub database_type: DBType,
-}

Fields

url: Stringpool: u32database_type: DBType

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

url: Stringpool: u32database_type: DBType

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/settings/struct.PageConfig.html b/pages/settings/struct.PageConfig.html index c793fa4..5fd357c 100644 --- a/pages/settings/struct.PageConfig.html +++ b/pages/settings/struct.PageConfig.html @@ -1,7 +1,7 @@ -PageConfig in pages::settings - Rust
pub struct PageConfig {
+PageConfig in pages::settings - Rust
pub struct PageConfig {
     pub base_path: String,
     pub base_domain: String,
-}

Fields

base_path: Stringbase_domain: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

base_path: Stringbase_domain: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/settings/struct.Server.html b/pages/settings/struct.Server.html index 0ebb555..eee0738 100644 --- a/pages/settings/struct.Server.html +++ b/pages/settings/struct.Server.html @@ -1,10 +1,10 @@ -Server in pages::settings - Rust
pub struct Server {
+Server in pages::settings - Rust
pub struct Server {
     pub port: u32,
     pub ip: String,
     pub workers: Option<usize>,
     pub cookie_secret: String,
     pub domain: String,
-}

Fields

port: u32ip: Stringworkers: Option<usize>cookie_secret: Stringdomain: String

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

port: u32ip: Stringworkers: Option<usize>cookie_secret: Stringdomain: String

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/settings/struct.Settings.html b/pages/settings/struct.Settings.html index 9d98877..93e7082 100644 --- a/pages/settings/struct.Settings.html +++ b/pages/settings/struct.Settings.html @@ -1,4 +1,4 @@ -Settings in pages::settings - Rust
pub struct Settings {
+Settings in pages::settings - Rust
pub struct Settings {
     pub allow_registration: bool,
     pub support_email: String,
     pub debug: bool,
@@ -6,7 +6,7 @@
     pub source_code: String,
     pub database: Database,
     pub page: PageConfig,
-}

Fields

allow_registration: boolsupport_email: Stringdebug: boolserver: Serversource_code: Stringdatabase: Databasepage: PageConfig

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

allow_registration: boolsupport_email: Stringdebug: boolserver: Serversource_code: Stringdatabase: Databasepage: PageConfig

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/pages/struct.Settings.html b/pages/struct.Settings.html index ed83e87..d60f5be 100644 --- a/pages/struct.Settings.html +++ b/pages/struct.Settings.html @@ -1,4 +1,4 @@ -Settings in pages - Rust
pub struct Settings {
+Settings in pages - Rust
pub struct Settings {
     pub allow_registration: bool,
     pub support_email: String,
     pub debug: bool,
@@ -6,7 +6,7 @@
     pub source_code: String,
     pub database: Database,
     pub page: PageConfig,
-}

Fields

allow_registration: boolsupport_email: Stringdebug: boolserver: Serversource_code: Stringdatabase: Databasepage: PageConfig

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

allow_registration: boolsupport_email: Stringdebug: boolserver: Serversource_code: Stringdatabase: Databasepage: PageConfig

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/src/pages/ctx/api/v1/pages.rs.html b/src/pages/ctx/api/v1/pages.rs.html index bb95676..50036eb 100644 --- a/src/pages/ctx/api/v1/pages.rs.html +++ b/src/pages/ctx/api/v1/pages.rs.html @@ -144,7 +144,7 @@ self.db.add_site(&db_site).await?; let page = Page::from_site(&self.settings, db_site); page.update(&page.branch)?; - if let Some(config) = page_config::Config::load(&page.path, &page.branch) { + if let Some(_config) = page_config::Config::load(&page.path, &page.branch) { unimplemented!(); } Ok(page) @@ -167,7 +167,7 @@ .unwrap(); } rx.await.unwrap()?; - if let Some(config) = page_config::Config::load(&page.path, &page.branch) { + if let Some(_config) = page_config::Config::load(&page.path, &page.branch) { unimplemented!(); } Ok(()) diff --git a/src/pages/db.rs.html b/src/pages/db.rs.html index 75a834c..bd568fa 100644 --- a/src/pages/db.rs.html +++ b/src/pages/db.rs.html @@ -692,7 +692,6 @@ 692 693 694 -695
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -718,7 +717,6 @@
 use sqlx::ConnectOptions;
 use sqlx::PgPool;
 use tracing::error;
-use url::quirks::hostname;
 
 use crate::errors::*;
 
diff --git a/src/pages/deploy.rs.html b/src/pages/deploy.rs.html
index dc366e3..348d755 100644
--- a/src/pages/deploy.rs.html
+++ b/src/pages/deploy.rs.html
@@ -180,7 +180,6 @@
 180
 181
 182
-183
 
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -199,7 +198,6 @@
  */
 use actix_web::{web, HttpResponse, Responder};
 use serde::{Deserialize, Serialize};
-use tokio::sync::oneshot;
 
 use crate::errors::*;
 use crate::page::Page;
diff --git a/src/pages/git.rs.html b/src/pages/git.rs.html
index 383cba8..a0eeba9 100644
--- a/src/pages/git.rs.html
+++ b/src/pages/git.rs.html
@@ -307,8 +307,6 @@
 307
 308
 309
-310
-311
 
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -498,12 +496,10 @@
         }
 
         fn file_not_found(e: git2::Error) -> ServiceError {
-            if e.code() == ErrorCode::NotFound {
-                if e.class() == ErrorClass::Tree {
-                    return ServiceError::FileNotFound;
-                }
+            if e.code() == ErrorCode::NotFound && e.class() == ErrorClass::Tree {
+                return ServiceError::FileNotFound;
             }
-            return e.into();
+            e.into()
         }
         let entry = tree.get_path(Path::new(path)).map_err(file_not_found)?;
 
diff --git a/src/pages/page_config.rs.html b/src/pages/page_config.rs.html
index 8ea85c1..7b1e523 100644
--- a/src/pages/page_config.rs.html
+++ b/src/pages/page_config.rs.html
@@ -193,9 +193,6 @@
 193
 194
 195
-196
-197
-198
 
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -300,9 +297,9 @@
         branch: &str,
         policies: &'a [Policy<'a>],
     ) -> Option<&'a Policy<'a>> {
-        let repo = git2::Repository::open(&repo_path).unwrap();
+        let repo = git2::Repository::open(repo_path).unwrap();
 
-        let branch = repo.find_branch(&branch, git2::BranchType::Local).unwrap();
+        let branch = repo.find_branch(branch, git2::BranchType::Local).unwrap();
         //    let tree = head.peel_to_tree().unwrap();
         let branch = branch.into_reference();
         let tree = branch.peel_to_tree().unwrap();
@@ -312,10 +309,7 @@
                 if let Some(name) = x.name() {
                     if policies.iter().any(|p| p.rel_path == name) {
                         let mode: GitFileMode = x.into();
-                        match mode {
-                            GitFileMode::Executable | GitFileMode::Regular => true,
-                            _ => false,
-                        }
+                        matches!(mode, GitFileMode::Executable | GitFileMode::Regular)
                     } else {
                         false
                     }
@@ -340,7 +334,7 @@
     }
 
     fn load_json(c: &str) -> Config {
-        serde_json::from_str(&c).unwrap()
+        serde_json::from_str(c).unwrap()
     }
 }
 
diff --git a/src/pages/pages/mod.rs.html b/src/pages/pages/mod.rs.html
index 9db6f1f..7a4abdb 100644
--- a/src/pages/pages/mod.rs.html
+++ b/src/pages/pages/mod.rs.html
@@ -344,7 +344,7 @@
     ctx
 }
 
-pub fn auth_ctx(username: Option<&str>, s: &Settings) -> Context {
+pub fn auth_ctx(_username: Option<&str>, s: &Settings) -> Context {
     let mut ctx = Context::new();
     let footer = Footer::new(s);
     ctx.insert("footer", &footer);
diff --git a/src/pages/preview.rs.html b/src/pages/preview.rs.html
index 20b0e0a..729135a 100644
--- a/src/pages/preview.rs.html
+++ b/src/pages/preview.rs.html
@@ -154,9 +154,9 @@
     }
 
     pub fn extract(&self, hostname: &'a str) -> Option<&'a str> {
-        if !hostname.contains(&self.delimiter)
-            || !hostname.contains(&self.prefix)
-            || !hostname.contains(&self.base)
+        if !hostname.contains(self.delimiter)
+            || !hostname.contains(self.prefix)
+            || !hostname.contains(self.base)
         {
             return None;
         }
diff --git a/src/pages/serve.rs.html b/src/pages/serve.rs.html
index 1f48913..fcafd65 100644
--- a/src/pages/serve.rs.html
+++ b/src/pages/serve.rs.html
@@ -149,8 +149,8 @@
     if host.contains(&ctx.settings.page.base_domain) {
         let extractor = crate::preview::Preview::new(&ctx);
         if let Some(preview_branch) = extractor.extract(host) {
-            let res = if ctx.db.hostname_exists(&host).await? {
-                let path = crate::utils::get_website_path(&ctx.settings, &host);
+            let res = if ctx.db.hostname_exists(host).await? {
+                let path = crate::utils::get_website_path(&ctx.settings, host);
                 let content =
                     crate::git::read_preview_file(&path, preview_branch, req.uri().path())?;
                 let mime = if let Some(mime) = content.mime.first_raw() {
@@ -171,7 +171,7 @@
 
     // TODO: custom domains.
     if ctx.db.hostname_exists(host).await? {
-        let path = crate::utils::get_website_path(&ctx.settings, &host);
+        let path = crate::utils::get_website_path(&ctx.settings, host);
         let content = crate::git::read_file(&path, req.uri().path())?;
         let mime = if let Some(mime) = content.mime.first_raw() {
             mime
diff --git a/src/pages/settings.rs.html b/src/pages/settings.rs.html
index af9247f..fc00d43 100644
--- a/src/pages/settings.rs.html
+++ b/src/pages/settings.rs.html
@@ -188,8 +188,6 @@
 188
 189
 190
-191
-192
 
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -208,22 +206,20 @@
  */
 use std::env;
 use std::path::Path;
-use std::sync::Arc;
 
 use config::{Config, ConfigError, Environment, File};
 use derive_more::Display;
 #[cfg(not(test))]
-use tracing::{error, warn};
+use tracing::warn;
 
 #[cfg(test)]
-use std::{println as warn, println as error};
+use std::println as warn;
 
 use serde::Deserialize;
 use serde::Serialize;
 use url::Url;
 
 use crate::errors::*;
-use crate::page::Page;
 
 #[derive(Debug, Clone, Serialize, Deserialize)]
 pub struct Server {
@@ -370,7 +366,7 @@
             }
 
             if !path.exists() {
-                std::fs::create_dir_all(&path).unwrap();
+                std::fs::create_dir_all(path).unwrap();
             }
         }