Skip to content

Commit

Permalink
fix upcoming lints
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaOber committed Oct 28, 2024
1 parent 660d5ef commit 5ee451e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion charming/src/datatype/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ macro_rules! df {
/// Code below is modified (using df! as reference) from ChatGPT generated code.
/// The main objective of macro dz! is to transpose mixed data type vectors,
/// aka columns or dimensions into ECharts dataframe format.
#[macro_export]
macro_rules! dz {
/*
Expand Down
6 changes: 3 additions & 3 deletions gallery/src/line/rainfall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn chart() -> Chart {
)
}

const TIME: [&str; 3079] = [
static TIME: [&str; 3079] = [
"2009/6/12\n2:00",
"2009/6/12\n3:00",
"2009/6/12\n4:00",
Expand Down Expand Up @@ -3185,7 +3185,7 @@ const TIME: [&str; 3079] = [
"2009/10/18\n8:00",
];

const FLOW_DATA: [f64; 3079] = [
static FLOW_DATA: [f64; 3079] = [
0.97, 0.96, 0.96, 0.95, 0.95, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
Expand Down Expand Up @@ -3387,7 +3387,7 @@ const FLOW_DATA: [f64; 3079] = [
0.45, 0.45, 0.45,
];

const RAINFALL_DATA: [f64; 3079] = [
static RAINFALL_DATA: [f64; 3079] = [
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0.005, 0.017, 0.017, 0.017, 0.017, 0.011, 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
Expand Down
6 changes: 3 additions & 3 deletions gallery/src/line/rainfall_vs_evaporation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn chart() -> Chart {
)
}

const TIME_DATA: [&str; 3079] = [
static TIME_DATA: [&str; 3079] = [
"2009/6/12 2:00",
"2009/6/12 3:00",
"2009/6/12 4:00",
Expand Down Expand Up @@ -3187,7 +3187,7 @@ const TIME_DATA: [&str; 3079] = [
"2009/10/18 8:00",
];

const EVAPORATION_DATA: [f64; 3079] = [
static EVAPORATION_DATA: [f64; 3079] = [
0.97, 0.96, 0.96, 0.95, 0.95, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
Expand Down Expand Up @@ -3389,7 +3389,7 @@ const EVAPORATION_DATA: [f64; 3079] = [
0.45, 0.45, 0.45,
];

const RAINFALL_DATA: [f64; 3079] = [
static RAINFALL_DATA: [f64; 3079] = [
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0.005, 0.017, 0.017, 0.017, 0.017, 0.011, 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
Expand Down

0 comments on commit 5ee451e

Please sign in to comment.