Skip to content

chore: bump version to 3.0.6 in Cargo.toml and README.md

30af82d
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Update license from GPL-3.0 to LGPL-3.0 #69

chore: bump version to 3.0.6 in Cargo.toml and README.md
30af82d
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Mar 24, 2025 in 0s

clippy

7 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 7
Note 0
Help 0

Versions

  • rustc 1.85.1 (4eb161250 2025-03-15)
  • cargo 1.85.1 (d73d2caf9 2024-12-31)
  • clippy 0.1.85 (4eb161250e 2025-03-15)

Annotations

Check warning on line 168 in src/sr/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `std::option::Option<rootasrole_core::database::actor::SGroups>`

warning: useless conversion to the same type: `std::option::Option<rootasrole_core::database::actor::SGroups>`
   --> src/sr/main.rs:158:25
    |
158 |                   group = iter
    |  _________________________^
159 | |                     .next()
160 | |                     .map(|s| {
161 | |                         SGroups::Multiple(
...   |
167 | |                     })
168 | |                     .into();
    | |___________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `#[warn(clippy::useless_conversion)]` on by default
help: consider removing `.into()`
    |
158 ~                 group = iter
159 +                     .next()
160 +                     .map(|s| {
161 +                         SGroups::Multiple(
162 +                             s.as_ref()
163 +                                 .split(',')
164 +                                 .map(|g| g.into())
165 +                                 .collect::<Vec<SGroupType>>(),
166 +                         )
167 ~                     });
    |

Check warning on line 501 in rar-common/src/database/options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

warning: this `map_or` can be simplified
   --> rar-common/src/database/options.rs:501:9
    |
501 |         self.as_ref().map_or(false, |set| set.env_matches(needle))
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `self.as_ref().is_some_and(|set| set.env_matches(needle))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or

Check warning on line 1197 in rar-common/src/database/finder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`to_string` applied to a type that implements `Display` in `debug!` args

warning: `to_string` applied to a type that implements `Display` in `debug!` args
    --> rar-common/src/database/finder.rs:1197:55
     |
1197 |                 tasks[0].task().as_ref().borrow().name.to_string(),
     |                                                       ^^^^^^^^^^^^ help: remove this
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args

Check warning on line 1114 in rar-common/src/database/finder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`to_string` applied to a type that implements `Display` in `debug!` args

warning: `to_string` applied to a type that implements `Display` in `debug!` args
    --> rar-common/src/database/finder.rs:1114:55
     |
1114 |                 min_role.task().as_ref().borrow().name.to_string(),
     |                                                       ^^^^^^^^^^^^ help: remove this
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
     = note: `#[warn(clippy::to_string_in_format_args)]` on by default

Check warning on line 549 in rar-common/src/database/finder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

warning: this `map_or` can be simplified
   --> rar-common/src/database/finder.rs:549:5
    |
549 |     (*actortype).fetch_id().map_or(false, |id| id == 0)
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `((*actortype).fetch_id() == Some(0))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or

Check warning on line 545 in rar-common/src/database/finder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

warning: this `map_or` can be simplified
   --> rar-common/src/database/finder.rs:545:5
    |
545 |     (*actortype).fetch_id().map_or(false, |id| id == 0)
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `((*actortype).fetch_id() == Some(0))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
    = note: `#[warn(clippy::unnecessary_map_or)]` on by default

Check warning on line 140 in rar-common/src/database/actor.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'de

warning: the following explicit lifetimes could be elided: 'de
   --> rar-common/src/database/actor.rs:140:14
    |
140 |         impl<'de> Visitor<'de> for IdVisitor {
    |              ^^^          ^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
    |
140 -         impl<'de> Visitor<'de> for IdVisitor {
140 +         impl Visitor<'_> for IdVisitor {
    |