Skip to content

Commit

Permalink
2021 edition upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeddicord committed Oct 22, 2024
1 parent b3afc79 commit b51b474
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "askalono"
version = "0.4.6"
edition = "2018"
edition = "2021"
description = "a library to detect the contents of license files"
license = "Apache-2.0"
repository = "https://github.com/jpeddicord/askalono"
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "askalono-cli"
version = "0.4.6"
edition = "2018"
edition = "2021"
description = "a tool to detect the contents of license files"
license = "Apache-2.0"
repository = "https://github.com/jpeddicord/askalono"
Expand Down
2 changes: 1 addition & 1 deletion extras/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "askalono-wasm"
version = "0.1.0"
edition = "2018"
edition = "2021"
license = "Apache-2.0"
authors = ["Jacob Peddicord <[email protected]>"]
description = "a wasm library to detect the contents of license files"
Expand Down
2 changes: 1 addition & 1 deletion src/license.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl fmt::Display for LicenseType {
/// ```
/// # use std::error::Error;
/// # use askalono::TextData;
/// # fn main() -> Result<(), Box<Error>> {
/// # fn main() -> Result<(), Box<dyn Error>> {
/// # let license = TextData::from("My First License");
/// let sample = TextData::from("copyright 20xx me irl\n// My First License\nfn hello() {\n ...");
/// let (optimized, score) = sample.optimize_bounds(&license);
Expand Down
2 changes: 1 addition & 1 deletion src/store/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub(crate) struct LicenseEntry {
/// # use std::error::Error;
/// use askalono::{Store, TextData};
///
/// # fn main() -> Result<(), Box<Error>> {
/// # fn main() -> Result<(), Box<dyn Error>> {
/// let store = Store::from_cache(File::open("askalono-cache.bin.zstd")?)?;
/// let result = store.analyze(&TextData::from("what's this"));
/// # Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub struct ContainedResult<'a> {
/// # use std::error::Error;
/// use askalono::{ScanStrategy, Store};
///
/// # fn main() -> Result<(), Box<Error>> {
/// # fn main() -> Result<(), Box<dyn Error>> {
/// let store = Store::new();
/// // [...]
/// let strategy = ScanStrategy::new(&store)
Expand Down

0 comments on commit b51b474

Please sign in to comment.