Skip to content

Commit

Permalink
Bump the all-dependencies group across 1 directory with 5 updates
Browse files Browse the repository at this point in the history
Bumps the all-dependencies group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.5.4` | `4.5.7` |
| [garde](https://github.com/jprochazk/garde) | `0.18.0` | `0.19.2` |
| [include_dir](https://github.com/Michael-F-Bryan/include_dir) | `0.7.3` | `0.7.4` |
| [uuid](https://github.com/uuid-rs/uuid) | `1.8.0` | `1.9.0` |
| [http-body-util](https://github.com/hyperium/http-body) | `0.1.1` | `0.1.2` |

Updates `clap` from 4.5.4 to 4.5.7
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.5.4...v4.5.7)

Updates `garde` from 0.18.0 to 0.19.2
- [Release notes](https://github.com/jprochazk/garde/releases)
- [Commits](jprochazk/garde@v0.18.0...v0.19.2)

Updates `include_dir` from 0.7.3 to 0.7.4
- [Commits](Michael-F-Bryan/include_dir@include_dir-v0.7.3...include_dir-v0.7.4)

Updates `uuid` from 1.8.0 to 1.9.0
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](uuid-rs/uuid@1.8.0...1.9.0)

Updates `http-body-util` from 0.1.1 to 0.1.2
- [Commits](hyperium/http-body@http-body-util-v0.1.1...http-body-util-v0.1.2)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: garde
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: include_dir
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: http-body-util
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and raffomania committed Jun 26, 2024
1 parent d0fd607 commit 01b0eba
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 37 deletions.
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ askama = { version = "0.12.1", features = ["with-axum"] }
askama_axum = "0.4.0"
axum = { version = "0.7.5", features = ["macros", "tracing"] }
axum-server = { version = "0.6.0", features = ["tls-rustls"] }
clap = { version = "4.5.4", features = ["derive", "env"] }
clap = { version = "4.5.7", features = ["derive", "env"] }
fake = { version = "2.9.2", default-features = false }
friendly-zoo = "1.1.0"
garde = { version = "0.18.0", default-features = false, features = ["derive", "url"]}
include_dir = "0.7.3"
garde = { version = "0.19.2", default-features = false, features = ["derive", "url"]}
include_dir = "0.7.4"
listenfd = "1.0.1"
mime_guess = "2.0.4"
rand = { version = "0.8.5", default-features = false }
Expand All @@ -37,15 +37,15 @@ tower-http = { version = "0.5.2", features = ["tracing", "trace"] }
tower-sessions = { version = "0.9", features = ["postgres-store", "deletion-task"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
uuid = { version = "1.8.0", features = ["v4"] }
uuid = { version = "1.9.0", features = ["v4"] }
visdom = "1.0.1"

[build-dependencies]
railwind = "0.1.5"
walkdir = "2"

[dev-dependencies]
http-body-util = "0.1.1"
http-body-util = "0.1.2"
serde_json = "1.0.117"
test-log = { version = "0.2.16", features = ["trace"], default-features = false }
itertools = "0.13.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub async fn run() -> Result<()> {
db::migrate(&pool).await?;

if let Some(create) = Option::<CreateUser>::from(admin_credentials) {
if let Err(e) = create.validate(&()) {
if let Err(e) = create.validate() {
return Err(anyhow!("Invalid credentials for admin user provided:\n{e}"));
}
let mut tx = pool.begin().await?;
Expand Down
2 changes: 2 additions & 0 deletions src/db/bookmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use super::AppTx;
pub struct Bookmark {
pub id: Uuid,
#[serde(with = "time::serde::iso8601")]
#[allow(dead_code)]
pub created_at: OffsetDateTime,
#[allow(dead_code)]
pub user_id: Uuid,

pub url: String,
Expand Down
3 changes: 3 additions & 0 deletions src/db/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::{db, forms::links::CreateLink, response_error::ResponseResult};
use super::AppTx;

#[derive(FromRow, Debug)]
#[allow(dead_code)]
pub struct Link {
pub id: Uuid,
pub created_at: OffsetDateTime,
Expand Down Expand Up @@ -60,7 +61,9 @@ impl LinkDestination {

pub struct LinkWithContent {
pub id: Uuid,
#[allow(dead_code)]
pub created_at: OffsetDateTime,
#[allow(dead_code)]
pub user_id: Uuid,

pub dest: LinkDestinationWithChildren,
Expand Down
2 changes: 2 additions & 0 deletions src/db/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ use super::LinkDestination;
pub struct List {
pub id: Uuid,
#[serde(with = "time::serde::iso8601")]
#[allow(dead_code)]
pub created_at: OffsetDateTime,
#[allow(dead_code)]
pub user_id: Uuid,

pub title: String,
Expand Down
2 changes: 1 addition & 1 deletion src/forms/bookmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl TryFrom<CreateBookmark> for InsertBookmark {
type Error = FormErrors;

fn try_from(value: CreateBookmark) -> Result<Self, Self::Error> {
value.validate(&())?;
value.validate()?;

if !value.submitted {
return Err(FormErrors::default());
Expand Down
5 changes: 0 additions & 5 deletions src/forms/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,3 @@ pub struct PartialCreateLink {
#[serde(default)]
pub submitted: bool,
}

#[derive(Debug, Deserialize)]
pub struct RemoveLink {
pub id: Uuid,
}
2 changes: 1 addition & 1 deletion src/routes/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async fn post_create(
None => None,
};

if let Err(errors) = input.validate(&()) {
if let Err(errors) = input.validate() {
return Ok(views::links::CreateLinkTemplate {
layout,
errors: errors.into(),
Expand Down
2 changes: 1 addition & 1 deletion src/routes/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async fn post_create(
) -> ResponseResult<Response> {
let layout = LayoutTemplate::from_db(&mut tx, &auth_user).await?;

if let Err(errors) = input.validate(&()) {
if let Err(errors) = input.validate() {
return Ok(views::lists::CreateListTemplate {
layout,
errors: errors.into(),
Expand Down
2 changes: 1 addition & 1 deletion src/routes/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async fn post_login(
session: Session,
QsForm(input): QsForm<Login>,
) -> ResponseResult<Response> {
if let Err(errors) = input.validate(&()) {
if let Err(errors) = input.validate() {
return Ok(LoginTemplate::new(errors, input).into_response());
};

Expand Down
4 changes: 1 addition & 3 deletions src/views/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ pub struct LayoutTemplate {
impl LayoutTemplate {
pub async fn from_db(tx: &mut AppTx, auth_user: &AuthUser) -> ResponseResult<Self> {
let pinned_lists = db::lists::list_pinned_by_user(tx, auth_user.user_id).await?;
// TODO read this from auth user instead
let user = db::users::by_id(tx, auth_user.user_id).await?;
Ok(LayoutTemplate {
logged_in_username: user.username,
logged_in_username: auth_user.user.username.clone(),
lists: pinned_lists,
})
}
Expand Down

0 comments on commit 01b0eba

Please sign in to comment.