Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
chanheec committed Apr 2, 2024
1 parent 5b3ce1c commit c15e3a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/ide-assists/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![allow(dead_code)]
#![allow(unused)]
#![allow(unused_imports)]
mod generated;
#[cfg(not(feature = "in-rust-tree"))]
mod sourcegen;
Expand Down
3 changes: 2 additions & 1 deletion crates/parser/src/syntax_kind.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
//! Defines [`SyntaxKind`] -- a fieldless enum of all possible syntactic
//! constructs of the Rust language.
#[allow(unused_imports)]
mod generated;

#[allow(unreachable_pub)]
pub use self::generated::{SyntaxKind, T};
pub use self::generated::SyntaxKind;

impl From<u16> for SyntaxKind {
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion crates/test-utils/src/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl FixtureWithProjectMeta {
}

impl MiniCore {
const RAW_SOURCE: &str = include_str!("./minicore.rs");
const RAW_SOURCE: &'static str = include_str!("./minicore.rs");

fn has_flag(&self, flag: &str) -> bool {
self.activated_flags.iter().any(|it| it == flag)
Expand Down

0 comments on commit c15e3a5

Please sign in to comment.