Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Conversation

@Gcommer
Copy link
Contributor

@Gcommer Gcommer commented Jan 23, 2025

Minor API addition to allow making consts for SendProps without needing to figure out the original table/prop name.

 const NUM_COSMETICS: SendPropIdentifier =
      SendPropIdentifier::from_const(12394170462905005439);

This is like the existing From<u64> impl; but marked const (sadly, Rust is still a long way off from const fns in traits rust-lang/rfcs#3490)

@Gcommer
Copy link
Contributor Author

Gcommer commented Feb 4, 2025

Looks like the clippy and test PR failures are both failing on master already: 0cd87a8

@icewind1991 icewind1991 merged commit e745137 into demostf:master Feb 19, 2025
2 of 3 checks passed
@Gcommer Gcommer deleted the from_const branch April 2, 2025 23:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants