Skip to content

Commit

Permalink
chore: update msrv to 1.62.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Jun 14, 2024
1 parent 824674e commit aafb635
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.51.0
toolchain: 1.62.1
override: true
- run: cargo check
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ repository = "https://github.com/bmwill/diffy"
readme = "README.md"
keywords = ["diff", "patch", "merge"]
categories = ["text-processing"]
edition = "2018"
rust-version = "1.62.1"
edition = "2021"

[dependencies]
nu-ansi-term = "0.46.0"
2 changes: 2 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ pub trait Text: Eq + Hash {
fn is_empty(&self) -> bool;
fn len(&self) -> usize;
fn starts_with(&self, prefix: &str) -> bool;
#[allow(unused)]
fn ends_with(&self, suffix: &str) -> bool;
fn strip_prefix(&self, prefix: &str) -> Option<&Self>;
fn strip_suffix(&self, suffix: &str) -> Option<&Self>;
Expand All @@ -84,6 +85,7 @@ pub trait Text: Eq + Hash {
fn split_at(&self, mid: usize) -> (&Self, &Self);
fn as_str(&self) -> Option<&str>;
fn as_bytes(&self) -> &[u8];
#[allow(unused)]
fn lines(&self) -> LineIter<Self>;

fn parse<T: std::str::FromStr>(&self) -> Option<T> {
Expand Down

0 comments on commit aafb635

Please sign in to comment.