Skip to content

Conversation

@henrikekblad
Copy link
Contributor

@henrikekblad henrikekblad commented Nov 25, 2024

Fixes #19

@kenkoooo kenkoooo requested a review from tamaroning November 25, 2024 11:36
Copy link
Contributor

@tamaroning tamaroning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing @henrikekblad !
It looks overall good but there are a few small nits.
Also, could you run cargo fmt in the rust/ directory?

Comment on lines 173 to 174

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove empty lines

Comment on lines 130 to 131
/// # Examples
///
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think examples of rust_xlsxwriter should be removed so that users don't get confused.

Comment on lines 201 to 202
/// # Examples
///
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


#[wasm_bindgen(js_name = "setFreezePanes", skip_jsdoc)]
pub fn set_freeze_panes(&self, row: xlsx::RowNum, col: xlsx::ColNum,) -> WasmResult<Worksheet> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure that rustfmt removes trailing commas but they should be removed.

/// src="https://rustxlsxwriter.github.io/images/worksheet_set_freeze_panes_top_cell.png">
///
#[wasm_bindgen(js_name = "setFreezePanesTopCell", skip_jsdoc)]
pub fn set_freeze_panes_top_cell(&self, row: xlsx::RowNum, col: xlsx::ColNum,) -> WasmResult<Worksheet> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@tamaroning
Copy link
Contributor

I forgot to mention, could you add a test for both methods?

@henrikekblad
Copy link
Contributor Author

Oh, forgot to add test for setFreezePanesTopCell

@henrikekblad
Copy link
Contributor Author

The trailing commas seems to be added automatically by cargo fmt sometimes

Copy link
Contributor

@tamaroning tamaroning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your swift response!

@tamaroning tamaroning merged commit 340e4ed into estie-inc:main Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Worksheet#setFreezePanes missing

2 participants