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

Fix panic when calculating padding spaces #364

Merged
merged 1 commit into from
Feb 5, 2022
Merged

Conversation

sigmaSd
Copy link
Contributor

@sigmaSd sigmaSd commented Feb 5, 2022

The user progress template can exceed the terminal width, so we use a
saturating_sub when calculating padding spaces to clamp it at 0 in
this case.

fix #358

The user progress template can exceed the terminal width, so we use a
`saturating_sub` when calculating padding spaces to clamp it at 0 in
this case.
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Thanks!

@djc djc merged commit 5afa9a4 into console-rs:main Feb 5, 2022
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 9, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 9, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 9, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 15, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 15, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 15, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 15, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 15, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
arxanas added a commit to arxanas/git-branchless that referenced this pull request Feb 15, 2022
I had to manually downgrade the version of `indicatif`:

```
cargo update -p indicatif --precise '0.17.0-beta.1'
```

Due to this bug: console-rs/indicatif#358

The fix is in console-rs/indicatif#364, which has not yet been released.
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.

0.17.0-rc.2 panic on win10 git-bash
2 participants