remove impl const
This commit is contained in:
@@ -118,7 +118,7 @@ impl<'de> Deserialize<'de> for FunctionEntry {
|
||||
}
|
||||
}
|
||||
|
||||
impl const Default for FunctionEntry {
|
||||
impl Default for FunctionEntry {
|
||||
/// Creates default FunctionEntry instance (which is empty)
|
||||
fn default() -> FunctionEntry {
|
||||
FunctionEntry {
|
||||
|
||||
@@ -51,7 +51,7 @@ pub struct AppSettings {
|
||||
pub plot_width: usize,
|
||||
}
|
||||
|
||||
impl const Default for AppSettings {
|
||||
impl Default for AppSettings {
|
||||
/// Default implementation of `AppSettings`, this is how the application starts up
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
@@ -84,7 +84,7 @@ struct Opened {
|
||||
pub welcome: bool,
|
||||
}
|
||||
|
||||
impl const Default for Opened {
|
||||
impl Default for Opened {
|
||||
fn default() -> Opened {
|
||||
Self {
|
||||
help: false,
|
||||
|
||||
@@ -46,7 +46,7 @@ pub trait Offset {
|
||||
fn offset_x(self, x_offset: f32) -> Pos2;
|
||||
}
|
||||
|
||||
impl const Offset for Pos2 {
|
||||
impl Offset for Pos2 {
|
||||
fn offset_y(self, y_offset: f32) -> Pos2 {
|
||||
Pos2 {
|
||||
x: self.x,
|
||||
|
||||
Reference in New Issue
Block a user