Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Vaultwarden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Vaultwarden
Commits
9082e7ce
Unverified
Commit
9082e7ce
authored
9 months ago
by
Daniel García
Committed by
GitHub
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix some nightly build errors (#4657)
parent
55fdee3b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.rs
+7
-0
7 additions, 0 deletions
build.rs
src/db/models/attachment.rs
+1
-1
1 addition, 1 deletion
src/db/models/attachment.rs
src/db/models/collection.rs
+1
-1
1 addition, 1 deletion
src/db/models/collection.rs
with
9 additions
and
2 deletions
build.rs
+
7
−
0
View file @
9082e7ce
...
@@ -17,6 +17,13 @@ fn main() {
...
@@ -17,6 +17,13 @@ fn main() {
"You need to enable one DB backend. To build with previous defaults do: cargo build --features sqlite"
"You need to enable one DB backend. To build with previous defaults do: cargo build --features sqlite"
);
);
// Use check-cfg to let cargo know which cfg's we define,
// and avoid warnings when they are used in the code.
println!
(
"cargo::rustc-check-cfg=cfg(sqlite)"
);
println!
(
"cargo::rustc-check-cfg=cfg(mysql)"
);
println!
(
"cargo::rustc-check-cfg=cfg(postgresql)"
);
println!
(
"cargo::rustc-check-cfg=cfg(query_logger)"
);
// Rerun when these paths are changed.
// Rerun when these paths are changed.
// Someone could have checked-out a tag or specific commit, but no other files changed.
// Someone could have checked-out a tag or specific commit, but no other files changed.
println!
(
"cargo:rerun-if-changed=.git"
);
println!
(
"cargo:rerun-if-changed=.git"
);
...
...
This diff is collapsed.
Click to expand it.
src/db/models/attachment.rs
+
1
−
1
View file @
9082e7ce
...
@@ -95,7 +95,7 @@ impl Attachment {
...
@@ -95,7 +95,7 @@ impl Attachment {
pub
async
fn
delete
(
&
self
,
conn
:
&
mut
DbConn
)
->
EmptyResult
{
pub
async
fn
delete
(
&
self
,
conn
:
&
mut
DbConn
)
->
EmptyResult
{
db_run!
{
conn
:
{
db_run!
{
conn
:
{
crate
::
util
::
retry
(
let
_
:
()
=
crate
::
util
::
retry
(
||
diesel
::
delete
(
attachments
::
table
.filter
(
attachments
::
id
.eq
(
&
self
.id
)))
.execute
(
conn
),
||
diesel
::
delete
(
attachments
::
table
.filter
(
attachments
::
id
.eq
(
&
self
.id
)))
.execute
(
conn
),
10
,
10
,
)
)
...
...
This diff is collapsed.
Click to expand it.
src/db/models/collection.rs
+
1
−
1
View file @
9082e7ce
...
@@ -632,7 +632,7 @@ impl CollectionUser {
...
@@ -632,7 +632,7 @@ impl CollectionUser {
db_run!
{
conn
:
{
db_run!
{
conn
:
{
for
user
in
collectionusers
{
for
user
in
collectionusers
{
diesel
::
delete
(
users_collections
::
table
.filter
(
let
_
:
()
=
diesel
::
delete
(
users_collections
::
table
.filter
(
users_collections
::
user_uuid
.eq
(
user_uuid
)
users_collections
::
user_uuid
.eq
(
user_uuid
)
.and
(
users_collections
::
collection_uuid
.eq
(
user
.collection_uuid
))
.and
(
users_collections
::
collection_uuid
.eq
(
user
.collection_uuid
))
))
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment