Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Code from Readme Doesn't Work (no method named ok_or) #436

Closed
richard-copperdata opened this issue May 17, 2024 · 0 comments
Closed
Labels

Comments

@richard-copperdata
Copy link

The following code in the first example does not pass cargo check in calamine version 0.24.0:

let mut workbook: Xlsx<_> = open_workbook(path)?;
    let range = workbook
        .worksheet_range("Sheet1")
        .ok_or(Error::Msg("Cannot find 'Sheet1'"))??;

Results in error:

No method named `ok_or` found for enum `Result` in the current scope

Using rustc 1.77.2

@tafia tafia added the doc label May 27, 2024
@tafia tafia closed this as completed in 7836fa5 Jul 2, 2024
tafia added a commit that referenced this issue Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants