Skip to content

Commit

Permalink
Merge pull request #105 from HadrienG2/fix-nightly-ci
Browse files Browse the repository at this point in the history
Fix lints in nightly CI
  • Loading branch information
HadrienG2 authored Jan 21, 2024
2 parents 9ad1103 + 8bfd315 commit a670ec4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ pub(crate) mod tests {
thread_local! {
/// Number of active [`SilentPanicGuard`] in the current thread. If
/// this is greater than one, panics will be silenced.
static SILENCE_DEPTH: Cell<usize> = Cell::new(0);
static SILENCE_DEPTH: Cell<usize> = const { Cell::new(0) };
}
//
impl SilentPanicGuard {
Expand Down
6 changes: 3 additions & 3 deletions src/topology/export/xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,16 @@ impl Ord for XML<'_> {

impl PartialEq for XML<'_> {
fn eq(&self, other: &Self) -> bool {
self.as_str().eq(other.as_str())
self.as_str() == other.as_str()
}
}

impl<T> PartialEq<T> for XML<'_>
where
str: PartialEq<T>,
for<'a> &'a str: PartialEq<T>,
{
fn eq(&self, other: &T) -> bool {
self.as_str().eq(other)
self.as_str() == *other
}
}

Expand Down

0 comments on commit a670ec4

Please sign in to comment.