Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Brannigan committed Jun 6, 2024
1 parent 305c9ae commit aa39054
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
4 changes: 3 additions & 1 deletion docs/development/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ The snippet is delimited by `--8<-- [start:<snippet_name>]` and `--8<-- [end:<sn

#### Linting

Before committing, install `dprint` (see above) and run `dprint fmt` from the `docs` directory to lint the markdown files.
Before committing:
- install `dprint` (see above) and run `dprint fmt` from the `docs` directory to lint the markdown files
- run `cargo fmt` for the `docs` directory to format the Rust code snippets

### API reference

Expand Down
29 changes: 14 additions & 15 deletions docs/src/rust/user-guide/transformations/concatenation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,20 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

// --8<-- [start:vertical_relaxed]
let df_v1 = df!(
"a"=> &[1.0],
"b"=> &[3],
)?;
let df_v2 = df!(
"a"=> &[2],
"b"=> &[4],
)?;
let df_vertical_relaxed_concat = concat(
[df_v1.clone().lazy(), df_v2.clone().lazy()],
UnionArgs::default(),
)?
.collect()?;
println!("{}", &df_vertical_relaxed_concat);
// --8<-- [end:vertical_relaxed]

"a"=> &[1.0],
"b"=> &[3],
)?;
let df_v2 = df!(
"a"=> &[2],
"b"=> &[4],
)?;
let df_vertical_relaxed_concat = concat(
[df_v1.clone().lazy(), df_v2.clone().lazy()],
UnionArgs::default(),
)?
.collect()?;
println!("{}", &df_vertical_relaxed_concat);
// --8<-- [end:vertical_relaxed]

// --8<-- [start:horizontal]
let df_h1 = df!(
Expand Down

0 comments on commit aa39054

Please sign in to comment.