mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
impl Default for Runnable structs
This commit is contained in:
parent
d8e2ece224
commit
07c62de125
9 changed files with 19 additions and 5 deletions
|
@ -584,6 +584,12 @@ pub struct PythonVersion {
|
|||
pub micro: Option<u8>,
|
||||
}
|
||||
|
||||
impl Default for PythonVersion {
|
||||
fn default() -> Self {
|
||||
Self::new(3, Some(11), Some(0))
|
||||
}
|
||||
}
|
||||
|
||||
impl PythonVersion {
|
||||
pub const fn new(major: u8, minor: Option<u8>, micro: Option<u8>) -> Self {
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue