Enable more lints
This commit is contained in:
parent
3f73578fc9
commit
da0e5f7373
12 changed files with 17 additions and 12 deletions
|
|
@ -14,7 +14,7 @@ pub struct DatabaseConfig {
|
|||
|
||||
fn default_sqlite_url() -> String {
|
||||
debug!("Using default sqlite url: {}", DEFAULT_SQLITE_URL);
|
||||
DEFAULT_SQLITE_URL.to_string()
|
||||
DEFAULT_SQLITE_URL.to_owned()
|
||||
}
|
||||
|
||||
fn default_max_connections() -> u32 {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ pub struct ServerConfig {
|
|||
|
||||
fn default_host() -> String {
|
||||
debug!("Using default server host: {}", DEFAULT_HOST);
|
||||
DEFAULT_HOST.to_string()
|
||||
DEFAULT_HOST.to_owned()
|
||||
}
|
||||
|
||||
fn default_port() -> u16 {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ pub struct User {
|
|||
|
||||
impl Default for UserConfig {
|
||||
fn default() -> Self {
|
||||
UserConfig {
|
||||
Self {
|
||||
user_tokens: default_users(),
|
||||
}
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ impl Default for UserConfig {
|
|||
|
||||
fn default_users() -> Vec<User> {
|
||||
vec![User {
|
||||
name: "admin".to_string(),
|
||||
name: "admin".to_owned(),
|
||||
token: get_random_token(),
|
||||
}]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue