forked from 2sys/phonograph
revert to stable rust release channel
This commit is contained in:
parent
a4ffb44f4d
commit
17ccd80764
4 changed files with 15 additions and 19 deletions
|
|
@ -1,5 +1,3 @@
|
|||
cargo-features = ["codegen-backend"]
|
||||
|
||||
[workspace]
|
||||
resolver = "3"
|
||||
members = ["phono-*"]
|
||||
|
|
@ -36,7 +34,5 @@ uuid = { version = "1.11.0", features = ["serde", "v4", "v7"] }
|
|||
validator = { version = "0.20.0", features = ["derive"] }
|
||||
|
||||
[profile.dev]
|
||||
# Use experimental compiler backend for ~30% faster dev builds.
|
||||
codegen-backend = "cranelift"
|
||||
# Skip generating debug info for ~10% faster dev builds.
|
||||
debug = false
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[tools]
|
||||
deno = "latest"
|
||||
rebar = "latest"
|
||||
rust = { version = "nightly", components = "rust-analyzer,clippy,rustc-codegen-cranelift-preview" }
|
||||
rust = { version = "1.93", components = "rust-analyzer,clippy" }
|
||||
watchexec = "latest"
|
||||
"cargo:sqlx-cli" = "0.8.6"
|
||||
|
||||
|
|
|
|||
|
|
@ -93,18 +93,20 @@ impl<'a> Accessor<Portal> for PortalAccessor<'a> {
|
|||
AccessError::NotFound
|
||||
})?;
|
||||
|
||||
spec.verify_workspace_id
|
||||
.is_none_or(|value| portal.workspace_id == value)
|
||||
.ok_or_else(|| {
|
||||
if spec
|
||||
.verify_workspace_id
|
||||
.is_some_and(|value| portal.workspace_id != value)
|
||||
{
|
||||
debug!("workspace_id check failed for portal");
|
||||
AccessError::NotFound
|
||||
})?;
|
||||
spec.verify_rel_oid
|
||||
.is_none_or(|value| portal.class_oid == value)
|
||||
.ok_or_else(|| {
|
||||
return Err(AccessError::NotFound);
|
||||
}
|
||||
if spec
|
||||
.verify_rel_oid
|
||||
.is_some_and(|value| portal.class_oid != value)
|
||||
{
|
||||
debug!("rel_oid check failed for portal");
|
||||
AccessError::NotFound
|
||||
})?;
|
||||
return Err(AccessError::NotFound);
|
||||
}
|
||||
|
||||
let rel = if let Some(value) = spec.using_rel {
|
||||
value
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@
|
|||
// received a copy of the GNU Affero General Public License along with this
|
||||
// program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![feature(bool_to_result)] // Enable support for `ok_or()` on bools.
|
||||
|
||||
pub mod accessors;
|
||||
pub mod client;
|
||||
pub mod cluster;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue