Set MSRV to 1.82
This commit is contained in:
parent
4cd814c3fb
commit
053b614187
6 changed files with 8 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ members = ["euphoxide", "euphoxide-bot", "euphoxide-client"]
|
|||
[workspace.package]
|
||||
version = "0.5.1"
|
||||
edition = "2021"
|
||||
rust-version = "1.82"
|
||||
|
||||
[workspace.dependencies]
|
||||
async-trait = "0.1.83"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
name = "euphoxide-bot"
|
||||
version = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
|
||||
[features]
|
||||
clap = ["dep:clap"]
|
||||
|
|
|
|||
|
|
@ -93,7 +93,8 @@ impl Info {
|
|||
}
|
||||
|
||||
pub fn prepend_trigger(&mut self, trigger: impl ToString) {
|
||||
let cur_trigger = self.trigger.get_or_insert_default();
|
||||
// TODO Use get_or_instert_default when updating MSRV
|
||||
let cur_trigger = self.trigger.get_or_insert_with(String::new);
|
||||
if !cur_trigger.is_empty() {
|
||||
cur_trigger.insert(0, ' ');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
name = "euphoxide-client"
|
||||
version = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
cookie = { workspace = true }
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
name = "euphoxide"
|
||||
edition = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
caseless = { workspace = true }
|
||||
|
|
|
|||
2
rust-toolchain.toml
Normal file
2
rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[toolchain]
|
||||
channel = "1.82.0" # Nixpkgs 24.11
|
||||
Loading…
Add table
Add a link
Reference in a new issue