Skip to content

Commit

Permalink
Specify edition and suppress dead-code warnings in compilation tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcianx committed Jan 5, 2025
1 parent 430f220 commit 26927b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "downcast-rs"
edition = "2015"
version = "1.2.1"
repository = "https://github.com/marcianx/downcast-rs"
description = """
Expand Down
1 change: 1 addition & 0 deletions tests/import_via_macro_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extern crate downcast_rs;
#[test]
fn test() {
use downcast_rs::Downcast;
#[allow(dead_code)]
trait Trait: Downcast {}
impl_downcast!(Trait);
}
1 change: 1 addition & 0 deletions tests/use_via_namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ extern crate downcast_rs;
#[test]
fn test() {
use downcast_rs::Downcast;
#[allow(dead_code)]
trait Trait: Downcast {}
downcast_rs::impl_downcast!(Trait);
}

0 comments on commit 26927b6

Please sign in to comment.