[PR #4657] [MERGED] Fix some nightly build errors #7108

Closed
opened 2026-03-07 21:11:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/4657
Author: @dani-garcia
Created: 6/19/2024
Status: Merged
Merged: 6/20/2024
Merged by: @BlackDex

Base: mainHead: fix-nightly-errors


📝 Commits (1)

  • 70b2ce4 Fix some nightly build errors

📊 Changes

3 files changed (+9 additions, -2 deletions)

View changed files

📝 build.rs (+7 -0)
📝 src/db/models/attachment.rs (+1 -1)
📝 src/db/models/collection.rs (+1 -1)

📄 Description

I was building vaultwarden with the latest rust nightly and was met with a couple of build errors/warnings.

  • Some unknown cfg warnings about the cfg's that we define based on features, which I disabled in the build.rs file
  • Some type inference errors, where a couple of functions were inferring the ! type instead of (). I'm not sure if this is a transient error or will become a hard error in a future stable release, but it was easy enough to solve.

This was using nightly 2024-06-18


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/4657 **Author:** [@dani-garcia](https://github.com/dani-garcia) **Created:** 6/19/2024 **Status:** ✅ Merged **Merged:** 6/20/2024 **Merged by:** [@BlackDex](https://github.com/BlackDex) **Base:** `main` ← **Head:** `fix-nightly-errors` --- ### 📝 Commits (1) - [`70b2ce4`](https://github.com/dani-garcia/vaultwarden/commit/70b2ce428158dffc67641c70a4652cf78b77cd43) Fix some nightly build errors ### 📊 Changes **3 files changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `build.rs` (+7 -0) 📝 `src/db/models/attachment.rs` (+1 -1) 📝 `src/db/models/collection.rs` (+1 -1) </details> ### 📄 Description I was building vaultwarden with the latest rust nightly and was met with a couple of build errors/warnings. - Some `unknown cfg` warnings about the cfg's that we define based on features, which I disabled in the build.rs file - Some type inference errors, where a couple of functions were inferring the `!` type instead of `()`. I'm not sure if this is a transient error or will become a hard error in a future stable release, but it was easy enough to solve. This was using nightly `2024-06-18` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:11:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#7108