Move core to workspace crate rune-core #52
test.yml
on: push
ubuntu / stable / minimal-versions
2m 44s
ubuntu / stable / coverage
3m 33s
Matrix: os-check
Matrix: required
Annotations
6 errors and 386 warnings
ubuntu / beta
Process completed with exit code 101.
|
ubuntu / stable
The job was canceled because "beta" failed.
|
ubuntu / stable
The operation was canceled.
|
ubuntu / stable / coverage
Process completed with exit code 1.
|
windows-latest / stable
Process completed with exit code 1.
|
macos-latest / stable
Process completed with exit code 101.
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L98
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:98:5
|
98 | pub fn new_local_unchecked() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local_unchecked() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L93
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:93:5
|
93 | pub fn new_local() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L68
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:68:26
|
68 | impl<T: Trace> Trace for HashSet<T> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
68 | impl<T: Trace, S: ::std::hash::BuildHasher> Trace for HashSet<T, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L57
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:57:36
|
57 | impl<K: Trace, V: Trace> Trace for HashMap<K, V> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
57 | impl<K: Trace, V: Trace, S: ::std::hash::BuildHasher> Trace for HashMap<K, V, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L543
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:543:22
|
543 | impl<T> Deref for Rt<HashSet<T>> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
543 | impl<T, S: ::std::hash::BuildHasher> Deref for Rt<HashSet<T, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L535
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:535:25
|
535 | impl<K, V> Deref for Rt<HashMap<K, V>> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
535 | impl<K, V, S: ::std::hash::BuildHasher> Deref for Rt<HashMap<K, V, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L510
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:510:15
|
510 | impl<K, V> Rt<HashMap<K, V>>
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
= note: `-W clippy::implicit-hasher` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::implicit_hasher)]`
help: consider adding a type parameter
|
510 | impl<K, V, S: ::std::hash::BuildHasher> Rt<HashMap<K, V, S>>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L369
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:369:5
|
369 | / pub fn try_as_option<T, E>(&self) -> Result<Option<&Rt<Gc<T>>>, E>
370 | | where
371 | | GcObj<'static>: TryInto<Gc<T>, Error = E>,
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L334
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:334:5
|
334 | pub fn as_cons(&self) -> &Rt<Gc<&Cons>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(&self) -> &Rt<Gc<&Cons>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L324
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:324:5
|
324 | pub fn use_as<U>(&self) -> &Rt<Gc<U>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn use_as<U>(&self) -> &Rt<Gc<U>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L315
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:315:5
|
315 | / pub fn bind_as<'ob, U, E>(&self, _cx: &'ob Context) -> Result<U, E>
316 | | where
317 | | Gc<T>: WithLifetime<'ob> + Copy,
318 | | <Gc<T> as WithLifetime<'ob>>::Out: TryInto<U, Error = E> + Copy,
| |________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L305
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:305:5
|
305 | / pub fn try_into<U, E>(&self) -> Result<&Rt<Gc<U>>, E>
306 | | where
307 | | Gc<T>: TryInto<Gc<U>, Error = E> + Copy,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L258
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:258:5
|
258 | / pub unsafe fn bind_unchecked<'ob>(&'ob self) -> <T as WithLifetime<'ob>>::Out
259 | | where
260 | | T: WithLifetime<'ob> + Copy,
| |____________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:98:5
|
98 | pub unsafe fn new(data: &'rt mut T, root_set: &'rt RootSet) -> __StackRoot<'rt, T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L26
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:26:5
|
26 | unsafe fn into_root(self) -> T;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/vector.rs#L45
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/vector.rs:45:5
|
45 | pub fn try_mut(&self) -> Result<&[MutObjCell]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/vector.rs#L36
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/vector.rs#L36
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: Vec<GcObj>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1443
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1443:5
|
1443 | pub fn car(self) -> GcObj<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn car(self) -> GcObj<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1326
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1326:5
|
1326 | pub fn as_cons(self) -> &'ob Cons {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(self) -> &'ob Cons`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1179
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1179:5
|
1179 | pub fn is_nil(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_nil(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L1168
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:1168:5
|
1168 | / pub fn try_from_option<T, E>(value: GcObj<'ob>) -> Result<Option<T>, E>
1169 | | where
1170 | | GcObj<'ob>: TryInto<T, Error = E>,
| |__________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L991
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:991:5
|
991 | pub fn get_type(self) -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_type(self) -> Type`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L902
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:902:5
|
902 | pub fn empty() -> Gc<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn empty() -> Gc<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L769
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:769:5
|
769 | pub fn val(self) -> NumberValue {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn val(self) -> NumberValue`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L595
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:595:1
|
595 | pub fn int_to_char(int: i64) -> Result<char, TypeError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L165
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:165:5
|
165 | unsafe fn with_lifetime(self) -> Self::Out;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L116
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:116:5
|
116 | pub fn untag(self) -> T {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn untag(self) -> T`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L110
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:110:5
|
110 | pub fn as_obj(&self) -> Gc<Object<'_>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_obj(&self) -> Gc<Object<'_>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L106
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:106:5
|
106 | pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L102
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:102:5
|
102 | pub fn ptr_eq<U>(self, other: Gc<U>) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn ptr_eq<U>(self, other: Gc<U>) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:98:5
|
98 | pub unsafe fn from_raw_ptr(raw: *mut u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L94
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L94
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_raw(raw: RawObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L90
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:90:5
|
90 | pub fn into_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L86
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:86:5
|
86 | pub fn into_raw(self) -> RawObj {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_raw(self) -> RawObj`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L47
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:47:1
|
47 | pub fn qtrue<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn qtrue<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L42
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:42:1
|
42 | pub fn nil<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn nil<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
variables can be used directly in the `format!` string:
crates/rune-core/src/object/string.rs#L90
warning: variables can be used directly in the `format!` string
--> crates/rune-core/src/object/string.rs:90:25
|
90 | write!(f, "\\x{:02x}", byte)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
90 - write!(f, "\\x{:02x}", byte)?;
90 + write!(f, "\\x{byte:02x}")?;
|
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_bstring(value: Vec<u8>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L41
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L41
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_string(value: String) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `LispString` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/string.rs#L34
warning: struct `LispString` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/string.rs:34:5
|
34 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
redundant closure:
crates/rune-core/src/object/string.rs#L29
warning: redundant closure
--> crates/rune-core/src/object/string.rs:29:58
|
29 | StrType::String(s) => s.chars().nth(idx).map(|c| c.into()),
| ^^^^^^^^^^^^ help: replace the closure with the method itself: `std::convert::Into::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
= note: `-W clippy::redundant-closure-for-method-calls` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::redundant_closure_for_method_calls)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/stack.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/stack.rs:83:5
|
83 | pub fn offset_end(&self, i: usize) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn offset_end(&self, i: usize) -> usize`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/hashtable.rs#L70
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/hashtable.rs:70:5
|
70 | / pub fn try_borrow_mut(
71 | | &self,
72 | | ) -> Result<RefMut<'_, HashTableView<'_, GcObj<'_>>>, BorrowMutError> {
| |_________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/hashtable.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/hashtable.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: HashTable) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L184
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:184:5
|
184 | / pub fn call<'ob>(
185 | | &self,
186 | | args: &mut Rt<Vec<GcObj<'static>>>,
187 | | env: &mut Rt<crate::env::Env>,
188 | | cx: &'ob mut Context,
189 | | ) -> Result<GcObj<'ob>> {
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L157
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:157:5
|
157 | pub fn num_of_fill_args(self, args: u16, name: &str) -> Result<u16> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L145
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:145:5
|
145 | pub fn into_arg_spec(self) -> u64 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_arg_spec(self) -> u64`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L128
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:128:5
|
128 | pub fn from_arg_spec(spec: u64) -> Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:83:5
|
83 | pub fn consts(&self) -> &Rt<&'static LispVec> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn consts(&self) -> &Rt<&'static LispVec>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L79
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:79:5
|
79 | pub fn code(&self) -> &Rt<&'static LispString> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn code(&self) -> &Rt<&'static LispString>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `ByteFn` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/func.rs#L59
warning: struct `ByteFn` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/func.rs:59:5
|
59 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/func.rs#L31
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/func.rs:31:5
|
31 | pub unsafe fn new(op_codes: &LispString, consts: &LispVec, args: FnArgs, depth: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/convert.rs#L93
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/convert.rs:93:1
|
93 | / pub fn try_from_slice<'brw, 'ob, T, E>(slice: &'brw [GcObj<'ob>]) -> Result<&'brw [Gc<T>], E>
94 | | where
95 | | Gc<T>: TryFrom<GcObj<'ob>, Error = E> + 'ob,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L28
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:28:5
|
28 | pub unsafe fn as_mut(&self) -> &MutObjCell {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L22
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/cell.rs#L22
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(obj: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/buffer.rs#L43
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/buffer.rs:43:5
|
43 | pub fn insert(&mut self, arg: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L250
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:250:5
|
250 | pub fn set_func(&self, symbol: Symbol, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L197
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:197:5
|
197 | pub fn with_capacity(cap: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_capacity(cap: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L98
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:98:5
|
98 | pub fn set_buffer(&mut self, buffer: &LispBuffer) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L80
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:80:5
|
80 | pub fn defvar(&mut self, var: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L58
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:58:5
|
58 | pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L30
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:30:5
|
30 | pub fn set_var(&mut self, sym: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L2
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:2:1
|
2 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L1
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:1:1
|
1 | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(non_snake_case)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `-W clippy::useless-attribute` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::useless_attribute)]`
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env/symbol.rs#L285
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L285
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L213
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:213:5
|
213 | pub const fn new_const(name: &'static str) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_const(name: &'static str) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L100
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:100:5
|
100 | pub fn is_special(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_special(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L87
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:87:5
|
87 | pub const fn new_builtin(idx: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_builtin(idx: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L82
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:82:5
|
82 | pub unsafe fn from_ptr(ptr: *const SymbolCell) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L78
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L78
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L70
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:70:5
|
70 | pub fn as_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
missing `#[must_use]` attribute on a method returning `Self`:
crates/rune-core/src/error.rs#L61
warning: missing `#[must_use]` attribute on a method returning `Self`
--> crates/rune-core/src/error.rs:61:5
|
61 | / pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
62 | | let display = display_slice(args);
63 | | self.backtrace.push(format!("{name} {display}"));
64 | | self
65 | | }
| |_____^
|
= help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
= note: `-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::return_self_not_must_use)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L61
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:61:5
|
61 | pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L56
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:56:5
|
56 | pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L37
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:37:5
|
37 | pub fn new_error(error: anyhow::Error) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_error(error: anyhow::Error) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L100
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:100:5
|
100 | pub fn set_cdr(&self, new_cdr: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L91
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:91:5
|
91 | pub fn set_car(&self, new_car: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/cons.rs#L30
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `-W clippy::missing-safety-doc` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons.rs#L30
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L197
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:197:5
|
197 | pub fn as_list(self) -> Result<ElemIter<'ob>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L178
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:178:5
|
178 | pub fn conses(self) -> ConsIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn conses(self) -> ConsIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L174
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:174:5
|
174 | pub fn elements(self) -> ElemIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn elements(self) -> ElemIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
`IntoIterator` implemented for a reference type without an `iter` method:
crates/rune-core/src/cons/iter.rs#L163
warning: `IntoIterator` implemented for a reference type without an `iter` method
--> crates/rune-core/src/cons/iter.rs:163:1
|
163 | / impl<'ob> IntoIterator for &'ob Cons {
164 | | type Item = <ElemIter<'ob> as Iterator>::Item;
165 | |
166 | | type IntoIter = ElemIter<'ob>;
... |
170 | | }
171 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_without_iter
= note: `-W clippy::into-iter-without-iter` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::into_iter_without_iter)]`
help: consider implementing `iter`
|
163 +
164 + impl Cons {
165 + fn iter(&self) -> ElemIter<'ob> {
166 + <&Self as IntoIterator>::into_iter(self)
167 + }
168 + }
|
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L147
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:147:5
|
147 | pub fn is_empty(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_empty(&self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L69
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:69:5
|
69 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L64
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
= note: `-W clippy::missing-errors-doc` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::missing_errors_doc)]`
|
struct `ElemIter` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/cons/iter.rs#L64
warning: struct `ElemIter` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
= note: `-W clippy::len-without-is-empty` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::len_without_is_empty)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L21
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:21:5
|
21 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: `-W clippy::must-use-candidate` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::must_use_candidate)]`
|
`crate` references the macro call's crate:
crates/rune-core/src/macros.rs#L12
warning: `crate` references the macro call's crate
--> crates/rune-core/src/macros.rs:12:41
|
12 | impl<'ob> std::convert::TryFrom<crate::object::GcObj<'ob>> for $self {
| ^^^^^ help: to reference the macro definition's crate, use: `$crate`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
= note: `-W clippy::crate-in-macro-def` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::crate_in_macro_def)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L98
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:98:5
|
98 | pub fn new_local_unchecked() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local_unchecked() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L93
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:93:5
|
93 | pub fn new_local() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L68
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:68:26
|
68 | impl<T: Trace> Trace for HashSet<T> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
68 | impl<T: Trace, S: ::std::hash::BuildHasher> Trace for HashSet<T, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L57
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:57:36
|
57 | impl<K: Trace, V: Trace> Trace for HashMap<K, V> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
57 | impl<K: Trace, V: Trace, S: ::std::hash::BuildHasher> Trace for HashMap<K, V, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L543
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:543:22
|
543 | impl<T> Deref for Rt<HashSet<T>> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
543 | impl<T, S: ::std::hash::BuildHasher> Deref for Rt<HashSet<T, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L535
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:535:25
|
535 | impl<K, V> Deref for Rt<HashMap<K, V>> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
535 | impl<K, V, S: ::std::hash::BuildHasher> Deref for Rt<HashMap<K, V, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L510
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:510:15
|
510 | impl<K, V> Rt<HashMap<K, V>>
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
= note: `-W clippy::implicit-hasher` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::implicit_hasher)]`
help: consider adding a type parameter
|
510 | impl<K, V, S: ::std::hash::BuildHasher> Rt<HashMap<K, V, S>>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L369
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:369:5
|
369 | / pub fn try_as_option<T, E>(&self) -> Result<Option<&Rt<Gc<T>>>, E>
370 | | where
371 | | GcObj<'static>: TryInto<Gc<T>, Error = E>,
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L334
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:334:5
|
334 | pub fn as_cons(&self) -> &Rt<Gc<&Cons>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(&self) -> &Rt<Gc<&Cons>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L324
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:324:5
|
324 | pub fn use_as<U>(&self) -> &Rt<Gc<U>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn use_as<U>(&self) -> &Rt<Gc<U>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L315
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:315:5
|
315 | / pub fn bind_as<'ob, U, E>(&self, _cx: &'ob Context) -> Result<U, E>
316 | | where
317 | | Gc<T>: WithLifetime<'ob> + Copy,
318 | | <Gc<T> as WithLifetime<'ob>>::Out: TryInto<U, Error = E> + Copy,
| |________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L305
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:305:5
|
305 | / pub fn try_into<U, E>(&self) -> Result<&Rt<Gc<U>>, E>
306 | | where
307 | | Gc<T>: TryInto<Gc<U>, Error = E> + Copy,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L258
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:258:5
|
258 | / pub unsafe fn bind_unchecked<'ob>(&'ob self) -> <T as WithLifetime<'ob>>::Out
259 | | where
260 | | T: WithLifetime<'ob> + Copy,
| |____________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:98:5
|
98 | pub unsafe fn new(data: &'rt mut T, root_set: &'rt RootSet) -> __StackRoot<'rt, T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L26
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:26:5
|
26 | unsafe fn into_root(self) -> T;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/vector.rs#L45
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/vector.rs:45:5
|
45 | pub fn try_mut(&self) -> Result<&[MutObjCell]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/vector.rs#L36
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/vector.rs#L36
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: Vec<GcObj>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1443
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1443:5
|
1443 | pub fn car(self) -> GcObj<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn car(self) -> GcObj<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1326
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1326:5
|
1326 | pub fn as_cons(self) -> &'ob Cons {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(self) -> &'ob Cons`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1179
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1179:5
|
1179 | pub fn is_nil(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_nil(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L1168
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:1168:5
|
1168 | / pub fn try_from_option<T, E>(value: GcObj<'ob>) -> Result<Option<T>, E>
1169 | | where
1170 | | GcObj<'ob>: TryInto<T, Error = E>,
| |__________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L991
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:991:5
|
991 | pub fn get_type(self) -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_type(self) -> Type`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L902
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:902:5
|
902 | pub fn empty() -> Gc<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn empty() -> Gc<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L769
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:769:5
|
769 | pub fn val(self) -> NumberValue {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn val(self) -> NumberValue`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L595
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:595:1
|
595 | pub fn int_to_char(int: i64) -> Result<char, TypeError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L165
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:165:5
|
165 | unsafe fn with_lifetime(self) -> Self::Out;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L116
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:116:5
|
116 | pub fn untag(self) -> T {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn untag(self) -> T`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L110
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:110:5
|
110 | pub fn as_obj(&self) -> Gc<Object<'_>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_obj(&self) -> Gc<Object<'_>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L106
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:106:5
|
106 | pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L102
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:102:5
|
102 | pub fn ptr_eq<U>(self, other: Gc<U>) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn ptr_eq<U>(self, other: Gc<U>) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:98:5
|
98 | pub unsafe fn from_raw_ptr(raw: *mut u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L94
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L94
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_raw(raw: RawObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L90
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:90:5
|
90 | pub fn into_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L86
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:86:5
|
86 | pub fn into_raw(self) -> RawObj {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_raw(self) -> RawObj`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L47
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:47:1
|
47 | pub fn qtrue<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn qtrue<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L42
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:42:1
|
42 | pub fn nil<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn nil<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
variables can be used directly in the `format!` string:
crates/rune-core/src/object/string.rs#L90
warning: variables can be used directly in the `format!` string
--> crates/rune-core/src/object/string.rs:90:25
|
90 | write!(f, "\\x{:02x}", byte)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
90 - write!(f, "\\x{:02x}", byte)?;
90 + write!(f, "\\x{byte:02x}")?;
|
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_bstring(value: Vec<u8>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L41
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L41
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_string(value: String) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `LispString` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/string.rs#L34
warning: struct `LispString` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/string.rs:34:5
|
34 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
redundant closure:
crates/rune-core/src/object/string.rs#L29
warning: redundant closure
--> crates/rune-core/src/object/string.rs:29:58
|
29 | StrType::String(s) => s.chars().nth(idx).map(|c| c.into()),
| ^^^^^^^^^^^^ help: replace the closure with the method itself: `std::convert::Into::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
= note: `-W clippy::redundant-closure-for-method-calls` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::redundant_closure_for_method_calls)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/stack.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/stack.rs:83:5
|
83 | pub fn offset_end(&self, i: usize) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn offset_end(&self, i: usize) -> usize`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/hashtable.rs#L70
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/hashtable.rs:70:5
|
70 | / pub fn try_borrow_mut(
71 | | &self,
72 | | ) -> Result<RefMut<'_, HashTableView<'_, GcObj<'_>>>, BorrowMutError> {
| |_________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/hashtable.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/hashtable.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: HashTable) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L184
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:184:5
|
184 | / pub fn call<'ob>(
185 | | &self,
186 | | args: &mut Rt<Vec<GcObj<'static>>>,
187 | | env: &mut Rt<crate::env::Env>,
188 | | cx: &'ob mut Context,
189 | | ) -> Result<GcObj<'ob>> {
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L157
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:157:5
|
157 | pub fn num_of_fill_args(self, args: u16, name: &str) -> Result<u16> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L145
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:145:5
|
145 | pub fn into_arg_spec(self) -> u64 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_arg_spec(self) -> u64`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L128
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:128:5
|
128 | pub fn from_arg_spec(spec: u64) -> Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:83:5
|
83 | pub fn consts(&self) -> &Rt<&'static LispVec> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn consts(&self) -> &Rt<&'static LispVec>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L79
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:79:5
|
79 | pub fn code(&self) -> &Rt<&'static LispString> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn code(&self) -> &Rt<&'static LispString>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `ByteFn` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/func.rs#L59
warning: struct `ByteFn` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/func.rs:59:5
|
59 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/func.rs#L31
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/func.rs:31:5
|
31 | pub unsafe fn new(op_codes: &LispString, consts: &LispVec, args: FnArgs, depth: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/convert.rs#L93
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/convert.rs:93:1
|
93 | / pub fn try_from_slice<'brw, 'ob, T, E>(slice: &'brw [GcObj<'ob>]) -> Result<&'brw [Gc<T>], E>
94 | | where
95 | | Gc<T>: TryFrom<GcObj<'ob>, Error = E> + 'ob,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L28
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:28:5
|
28 | pub unsafe fn as_mut(&self) -> &MutObjCell {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L22
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/cell.rs#L22
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(obj: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/buffer.rs#L43
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/buffer.rs:43:5
|
43 | pub fn insert(&mut self, arg: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L250
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:250:5
|
250 | pub fn set_func(&self, symbol: Symbol, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L197
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:197:5
|
197 | pub fn with_capacity(cap: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_capacity(cap: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L98
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:98:5
|
98 | pub fn set_buffer(&mut self, buffer: &LispBuffer) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L80
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:80:5
|
80 | pub fn defvar(&mut self, var: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L58
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:58:5
|
58 | pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L30
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:30:5
|
30 | pub fn set_var(&mut self, sym: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L2
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:2:1
|
2 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L1
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:1:1
|
1 | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(non_snake_case)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `-W clippy::useless-attribute` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::useless_attribute)]`
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env/symbol.rs#L285
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L285
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L213
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:213:5
|
213 | pub const fn new_const(name: &'static str) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_const(name: &'static str) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L100
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:100:5
|
100 | pub fn is_special(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_special(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L87
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:87:5
|
87 | pub const fn new_builtin(idx: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_builtin(idx: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L82
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:82:5
|
82 | pub unsafe fn from_ptr(ptr: *const SymbolCell) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L78
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L78
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L70
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:70:5
|
70 | pub fn as_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
missing `#[must_use]` attribute on a method returning `Self`:
crates/rune-core/src/error.rs#L61
warning: missing `#[must_use]` attribute on a method returning `Self`
--> crates/rune-core/src/error.rs:61:5
|
61 | / pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
62 | | let display = display_slice(args);
63 | | self.backtrace.push(format!("{name} {display}"));
64 | | self
65 | | }
| |_____^
|
= help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
= note: `-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::return_self_not_must_use)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L61
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:61:5
|
61 | pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L56
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:56:5
|
56 | pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L37
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:37:5
|
37 | pub fn new_error(error: anyhow::Error) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_error(error: anyhow::Error) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L100
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:100:5
|
100 | pub fn set_cdr(&self, new_cdr: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L91
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:91:5
|
91 | pub fn set_car(&self, new_car: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/cons.rs#L30
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `-W clippy::missing-safety-doc` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons.rs#L30
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L197
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:197:5
|
197 | pub fn as_list(self) -> Result<ElemIter<'ob>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L178
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:178:5
|
178 | pub fn conses(self) -> ConsIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn conses(self) -> ConsIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L174
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:174:5
|
174 | pub fn elements(self) -> ElemIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn elements(self) -> ElemIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
`IntoIterator` implemented for a reference type without an `iter` method:
crates/rune-core/src/cons/iter.rs#L163
warning: `IntoIterator` implemented for a reference type without an `iter` method
--> crates/rune-core/src/cons/iter.rs:163:1
|
163 | / impl<'ob> IntoIterator for &'ob Cons {
164 | | type Item = <ElemIter<'ob> as Iterator>::Item;
165 | |
166 | | type IntoIter = ElemIter<'ob>;
... |
170 | | }
171 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_without_iter
= note: `-W clippy::into-iter-without-iter` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::into_iter_without_iter)]`
help: consider implementing `iter`
|
163 +
164 + impl Cons {
165 + fn iter(&self) -> ElemIter<'ob> {
166 + <&Self as IntoIterator>::into_iter(self)
167 + }
168 + }
|
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L147
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:147:5
|
147 | pub fn is_empty(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_empty(&self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L69
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:69:5
|
69 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L64
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
= note: `-W clippy::missing-errors-doc` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::missing_errors_doc)]`
|
struct `ElemIter` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/cons/iter.rs#L64
warning: struct `ElemIter` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
= note: `-W clippy::len-without-is-empty` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::len_without_is_empty)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L21
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:21:5
|
21 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: `-W clippy::must-use-candidate` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::must_use_candidate)]`
|
`crate` references the macro call's crate:
crates/rune-core/src/macros.rs#L12
warning: `crate` references the macro call's crate
--> crates/rune-core/src/macros.rs:12:41
|
12 | impl<'ob> std::convert::TryFrom<crate::object::GcObj<'ob>> for $self {
| ^^^^^ help: to reference the macro definition's crate, use: `$crate`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
= note: `-W clippy::crate-in-macro-def` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::crate_in_macro_def)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L98
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:98:5
|
98 | pub fn new_local_unchecked() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local_unchecked() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L93
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:93:5
|
93 | pub fn new_local() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L68
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:68:26
|
68 | impl<T: Trace> Trace for HashSet<T> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
68 | impl<T: Trace, S: ::std::hash::BuildHasher> Trace for HashSet<T, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L57
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:57:36
|
57 | impl<K: Trace, V: Trace> Trace for HashMap<K, V> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
57 | impl<K: Trace, V: Trace, S: ::std::hash::BuildHasher> Trace for HashMap<K, V, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L543
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:543:22
|
543 | impl<T> Deref for Rt<HashSet<T>> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
543 | impl<T, S: ::std::hash::BuildHasher> Deref for Rt<HashSet<T, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L535
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:535:25
|
535 | impl<K, V> Deref for Rt<HashMap<K, V>> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
535 | impl<K, V, S: ::std::hash::BuildHasher> Deref for Rt<HashMap<K, V, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L510
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:510:15
|
510 | impl<K, V> Rt<HashMap<K, V>>
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
= note: `-W clippy::implicit-hasher` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::implicit_hasher)]`
help: consider adding a type parameter
|
510 | impl<K, V, S: ::std::hash::BuildHasher> Rt<HashMap<K, V, S>>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L369
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:369:5
|
369 | / pub fn try_as_option<T, E>(&self) -> Result<Option<&Rt<Gc<T>>>, E>
370 | | where
371 | | GcObj<'static>: TryInto<Gc<T>, Error = E>,
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L334
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:334:5
|
334 | pub fn as_cons(&self) -> &Rt<Gc<&Cons>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(&self) -> &Rt<Gc<&Cons>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L324
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:324:5
|
324 | pub fn use_as<U>(&self) -> &Rt<Gc<U>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn use_as<U>(&self) -> &Rt<Gc<U>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L315
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:315:5
|
315 | / pub fn bind_as<'ob, U, E>(&self, _cx: &'ob Context) -> Result<U, E>
316 | | where
317 | | Gc<T>: WithLifetime<'ob> + Copy,
318 | | <Gc<T> as WithLifetime<'ob>>::Out: TryInto<U, Error = E> + Copy,
| |________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L305
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:305:5
|
305 | / pub fn try_into<U, E>(&self) -> Result<&Rt<Gc<U>>, E>
306 | | where
307 | | Gc<T>: TryInto<Gc<U>, Error = E> + Copy,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L258
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:258:5
|
258 | / pub unsafe fn bind_unchecked<'ob>(&'ob self) -> <T as WithLifetime<'ob>>::Out
259 | | where
260 | | T: WithLifetime<'ob> + Copy,
| |____________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:98:5
|
98 | pub unsafe fn new(data: &'rt mut T, root_set: &'rt RootSet) -> __StackRoot<'rt, T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L26
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:26:5
|
26 | unsafe fn into_root(self) -> T;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/vector.rs#L45
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/vector.rs:45:5
|
45 | pub fn try_mut(&self) -> Result<&[MutObjCell]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/vector.rs#L36
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/vector.rs#L36
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: Vec<GcObj>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1443
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1443:5
|
1443 | pub fn car(self) -> GcObj<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn car(self) -> GcObj<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1326
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1326:5
|
1326 | pub fn as_cons(self) -> &'ob Cons {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(self) -> &'ob Cons`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1179
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1179:5
|
1179 | pub fn is_nil(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_nil(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L1168
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:1168:5
|
1168 | / pub fn try_from_option<T, E>(value: GcObj<'ob>) -> Result<Option<T>, E>
1169 | | where
1170 | | GcObj<'ob>: TryInto<T, Error = E>,
| |__________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L991
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:991:5
|
991 | pub fn get_type(self) -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_type(self) -> Type`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L902
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:902:5
|
902 | pub fn empty() -> Gc<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn empty() -> Gc<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L769
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:769:5
|
769 | pub fn val(self) -> NumberValue {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn val(self) -> NumberValue`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L595
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:595:1
|
595 | pub fn int_to_char(int: i64) -> Result<char, TypeError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L165
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:165:5
|
165 | unsafe fn with_lifetime(self) -> Self::Out;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L116
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:116:5
|
116 | pub fn untag(self) -> T {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn untag(self) -> T`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L110
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:110:5
|
110 | pub fn as_obj(&self) -> Gc<Object<'_>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_obj(&self) -> Gc<Object<'_>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L106
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:106:5
|
106 | pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L102
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:102:5
|
102 | pub fn ptr_eq<U>(self, other: Gc<U>) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn ptr_eq<U>(self, other: Gc<U>) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:98:5
|
98 | pub unsafe fn from_raw_ptr(raw: *mut u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L94
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L94
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_raw(raw: RawObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L90
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:90:5
|
90 | pub fn into_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L86
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:86:5
|
86 | pub fn into_raw(self) -> RawObj {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_raw(self) -> RawObj`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L47
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:47:1
|
47 | pub fn qtrue<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn qtrue<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L42
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:42:1
|
42 | pub fn nil<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn nil<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
variables can be used directly in the `format!` string:
crates/rune-core/src/object/string.rs#L90
warning: variables can be used directly in the `format!` string
--> crates/rune-core/src/object/string.rs:90:25
|
90 | write!(f, "\\x{:02x}", byte)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
90 - write!(f, "\\x{:02x}", byte)?;
90 + write!(f, "\\x{byte:02x}")?;
|
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_bstring(value: Vec<u8>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L41
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L41
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_string(value: String) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `LispString` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/string.rs#L34
warning: struct `LispString` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/string.rs:34:5
|
34 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
redundant closure:
crates/rune-core/src/object/string.rs#L29
warning: redundant closure
--> crates/rune-core/src/object/string.rs:29:58
|
29 | StrType::String(s) => s.chars().nth(idx).map(|c| c.into()),
| ^^^^^^^^^^^^ help: replace the closure with the method itself: `std::convert::Into::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
= note: `-W clippy::redundant-closure-for-method-calls` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::redundant_closure_for_method_calls)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/stack.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/stack.rs:83:5
|
83 | pub fn offset_end(&self, i: usize) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn offset_end(&self, i: usize) -> usize`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/hashtable.rs#L70
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/hashtable.rs:70:5
|
70 | / pub fn try_borrow_mut(
71 | | &self,
72 | | ) -> Result<RefMut<'_, HashTableView<'_, GcObj<'_>>>, BorrowMutError> {
| |_________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/hashtable.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/hashtable.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: HashTable) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L184
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:184:5
|
184 | / pub fn call<'ob>(
185 | | &self,
186 | | args: &mut Rt<Vec<GcObj<'static>>>,
187 | | env: &mut Rt<crate::env::Env>,
188 | | cx: &'ob mut Context,
189 | | ) -> Result<GcObj<'ob>> {
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L157
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:157:5
|
157 | pub fn num_of_fill_args(self, args: u16, name: &str) -> Result<u16> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L145
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:145:5
|
145 | pub fn into_arg_spec(self) -> u64 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_arg_spec(self) -> u64`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L128
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:128:5
|
128 | pub fn from_arg_spec(spec: u64) -> Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:83:5
|
83 | pub fn consts(&self) -> &Rt<&'static LispVec> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn consts(&self) -> &Rt<&'static LispVec>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L79
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:79:5
|
79 | pub fn code(&self) -> &Rt<&'static LispString> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn code(&self) -> &Rt<&'static LispString>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `ByteFn` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/func.rs#L59
warning: struct `ByteFn` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/func.rs:59:5
|
59 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/func.rs#L31
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/func.rs:31:5
|
31 | pub unsafe fn new(op_codes: &LispString, consts: &LispVec, args: FnArgs, depth: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/convert.rs#L93
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/convert.rs:93:1
|
93 | / pub fn try_from_slice<'brw, 'ob, T, E>(slice: &'brw [GcObj<'ob>]) -> Result<&'brw [Gc<T>], E>
94 | | where
95 | | Gc<T>: TryFrom<GcObj<'ob>, Error = E> + 'ob,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L28
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:28:5
|
28 | pub unsafe fn as_mut(&self) -> &MutObjCell {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L22
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/cell.rs#L22
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(obj: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/buffer.rs#L43
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/buffer.rs:43:5
|
43 | pub fn insert(&mut self, arg: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L250
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:250:5
|
250 | pub fn set_func(&self, symbol: Symbol, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L197
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:197:5
|
197 | pub fn with_capacity(cap: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_capacity(cap: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L98
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:98:5
|
98 | pub fn set_buffer(&mut self, buffer: &LispBuffer) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L80
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:80:5
|
80 | pub fn defvar(&mut self, var: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L58
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:58:5
|
58 | pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L30
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:30:5
|
30 | pub fn set_var(&mut self, sym: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L2
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:2:1
|
2 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L1
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:1:1
|
1 | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(non_snake_case)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `-W clippy::useless-attribute` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::useless_attribute)]`
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env/symbol.rs#L285
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L285
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L213
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:213:5
|
213 | pub const fn new_const(name: &'static str) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_const(name: &'static str) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L100
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:100:5
|
100 | pub fn is_special(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_special(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L87
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:87:5
|
87 | pub const fn new_builtin(idx: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_builtin(idx: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L82
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:82:5
|
82 | pub unsafe fn from_ptr(ptr: *const SymbolCell) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L78
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L78
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L70
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:70:5
|
70 | pub fn as_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
missing `#[must_use]` attribute on a method returning `Self`:
crates/rune-core/src/error.rs#L61
warning: missing `#[must_use]` attribute on a method returning `Self`
--> crates/rune-core/src/error.rs:61:5
|
61 | / pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
62 | | let display = display_slice(args);
63 | | self.backtrace.push(format!("{name} {display}"));
64 | | self
65 | | }
| |_____^
|
= help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
= note: `-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::return_self_not_must_use)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L61
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:61:5
|
61 | pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L56
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:56:5
|
56 | pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L37
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:37:5
|
37 | pub fn new_error(error: anyhow::Error) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_error(error: anyhow::Error) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L100
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:100:5
|
100 | pub fn set_cdr(&self, new_cdr: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L91
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:91:5
|
91 | pub fn set_car(&self, new_car: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/cons.rs#L30
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `-W clippy::missing-safety-doc` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons.rs#L30
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L197
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:197:5
|
197 | pub fn as_list(self) -> Result<ElemIter<'ob>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L178
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:178:5
|
178 | pub fn conses(self) -> ConsIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn conses(self) -> ConsIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L174
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:174:5
|
174 | pub fn elements(self) -> ElemIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn elements(self) -> ElemIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L147
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:147:5
|
147 | pub fn is_empty(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_empty(&self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L69
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:69:5
|
69 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L64
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
= note: `-W clippy::missing-errors-doc` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::missing_errors_doc)]`
|
struct `ElemIter` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/cons/iter.rs#L64
warning: struct `ElemIter` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
= note: `-W clippy::len-without-is-empty` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::len_without_is_empty)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L21
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:21:5
|
21 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: `-W clippy::must-use-candidate` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::must_use_candidate)]`
|
`crate` references the macro call's crate:
crates/rune-core/src/macros.rs#L12
warning: `crate` references the macro call's crate
--> crates/rune-core/src/macros.rs:12:41
|
12 | impl<'ob> std::convert::TryFrom<crate::object::GcObj<'ob>> for $self {
| ^^^^^ help: to reference the macro definition's crate, use: `$crate`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
= note: `-W clippy::crate-in-macro-def` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::crate_in_macro_def)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L98
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:98:5
|
98 | pub fn new_local_unchecked() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local_unchecked() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/context.rs#L93
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/context.rs:93:5
|
93 | pub fn new_local() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_local() -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L68
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:68:26
|
68 | impl<T: Trace> Trace for HashSet<T> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
68 | impl<T: Trace, S: ::std::hash::BuildHasher> Trace for HashSet<T, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/trace.rs#L57
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/trace.rs:57:36
|
57 | impl<K: Trace, V: Trace> Trace for HashMap<K, V> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
57 | impl<K: Trace, V: Trace, S: ::std::hash::BuildHasher> Trace for HashMap<K, V, S> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashSet` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L543
warning: impl for `HashSet` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:543:22
|
543 | impl<T> Deref for Rt<HashSet<T>> {
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
543 | impl<T, S: ::std::hash::BuildHasher> Deref for Rt<HashSet<T, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L535
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:535:25
|
535 | impl<K, V> Deref for Rt<HashMap<K, V>> {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
help: consider adding a type parameter
|
535 | impl<K, V, S: ::std::hash::BuildHasher> Deref for Rt<HashMap<K, V, S>> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
impl for `HashMap` should be generalized over different hashers:
crates/rune-core/src/gc/root.rs#L510
warning: impl for `HashMap` should be generalized over different hashers
--> crates/rune-core/src/gc/root.rs:510:15
|
510 | impl<K, V> Rt<HashMap<K, V>>
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
= note: `-W clippy::implicit-hasher` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::implicit_hasher)]`
help: consider adding a type parameter
|
510 | impl<K, V, S: ::std::hash::BuildHasher> Rt<HashMap<K, V, S>>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L369
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:369:5
|
369 | / pub fn try_as_option<T, E>(&self) -> Result<Option<&Rt<Gc<T>>>, E>
370 | | where
371 | | GcObj<'static>: TryInto<Gc<T>, Error = E>,
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L334
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:334:5
|
334 | pub fn as_cons(&self) -> &Rt<Gc<&Cons>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(&self) -> &Rt<Gc<&Cons>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/gc/root.rs#L324
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/gc/root.rs:324:5
|
324 | pub fn use_as<U>(&self) -> &Rt<Gc<U>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn use_as<U>(&self) -> &Rt<Gc<U>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L315
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:315:5
|
315 | / pub fn bind_as<'ob, U, E>(&self, _cx: &'ob Context) -> Result<U, E>
316 | | where
317 | | Gc<T>: WithLifetime<'ob> + Copy,
318 | | <Gc<T> as WithLifetime<'ob>>::Out: TryInto<U, Error = E> + Copy,
| |________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/gc/root.rs#L305
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/gc/root.rs:305:5
|
305 | / pub fn try_into<U, E>(&self) -> Result<&Rt<Gc<U>>, E>
306 | | where
307 | | Gc<T>: TryInto<Gc<U>, Error = E> + Copy,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L258
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:258:5
|
258 | / pub unsafe fn bind_unchecked<'ob>(&'ob self) -> <T as WithLifetime<'ob>>::Out
259 | | where
260 | | T: WithLifetime<'ob> + Copy,
| |____________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:98:5
|
98 | pub unsafe fn new(data: &'rt mut T, root_set: &'rt RootSet) -> __StackRoot<'rt, T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/gc/root.rs#L26
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/gc/root.rs:26:5
|
26 | unsafe fn into_root(self) -> T;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/vector.rs#L45
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/vector.rs:45:5
|
45 | pub fn try_mut(&self) -> Result<&[MutObjCell]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/vector.rs#L36
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/vector.rs#L36
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/vector.rs:36:5
|
36 | pub unsafe fn new(vec: Vec<GcObj>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: Vec<GcObj>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1443
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1443:5
|
1443 | pub fn car(self) -> GcObj<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn car(self) -> GcObj<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1326
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1326:5
|
1326 | pub fn as_cons(self) -> &'ob Cons {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_cons(self) -> &'ob Cons`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L1179
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:1179:5
|
1179 | pub fn is_nil(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_nil(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L1168
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:1168:5
|
1168 | / pub fn try_from_option<T, E>(value: GcObj<'ob>) -> Result<Option<T>, E>
1169 | | where
1170 | | GcObj<'ob>: TryInto<T, Error = E>,
| |__________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L991
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:991:5
|
991 | pub fn get_type(self) -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_type(self) -> Type`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L902
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:902:5
|
902 | pub fn empty() -> Gc<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn empty() -> Gc<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L769
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:769:5
|
769 | pub fn val(self) -> NumberValue {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn val(self) -> NumberValue`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/tagged.rs#L595
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/tagged.rs:595:1
|
595 | pub fn int_to_char(int: i64) -> Result<char, TypeError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L165
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:165:5
|
165 | unsafe fn with_lifetime(self) -> Self::Out;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L116
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:116:5
|
116 | pub fn untag(self) -> T {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn untag(self) -> T`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L110
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:110:5
|
110 | pub fn as_obj(&self) -> Gc<Object<'_>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_obj(&self) -> Gc<Object<'_>>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L106
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:106:5
|
106 | pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn copy_as_obj<const C: bool>(self, _: &Block<C>) -> Gc<Object>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L102
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:102:5
|
102 | pub fn ptr_eq<U>(self, other: Gc<U>) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn ptr_eq<U>(self, other: Gc<U>) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L98
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:98:5
|
98 | pub unsafe fn from_raw_ptr(raw: *mut u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/tagged.rs#L94
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L94
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:94:5
|
94 | pub unsafe fn from_raw(raw: RawObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_raw(raw: RawObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L90
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:90:5
|
90 | pub fn into_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L86
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:86:5
|
86 | pub fn into_raw(self) -> RawObj {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_raw(self) -> RawObj`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L47
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:47:1
|
47 | pub fn qtrue<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn qtrue<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this function could have a `#[must_use]` attribute:
crates/rune-core/src/object/tagged.rs#L42
warning: this function could have a `#[must_use]` attribute
--> crates/rune-core/src/object/tagged.rs:42:1
|
42 | pub fn nil<'a>() -> GcObj<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn nil<'a>() -> GcObj<'a>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
variables can be used directly in the `format!` string:
crates/rune-core/src/object/string.rs#L90
warning: variables can be used directly in the `format!` string
--> crates/rune-core/src/object/string.rs:90:25
|
90 | write!(f, "\\x{:02x}", byte)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
90 - write!(f, "\\x{:02x}", byte)?;
90 + write!(f, "\\x{byte:02x}")?;
|
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:45:5
|
45 | pub unsafe fn from_bstring(value: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_bstring(value: Vec<u8>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/string.rs#L41
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/string.rs#L41
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/string.rs:41:5
|
41 | pub unsafe fn from_string(value: String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_string(value: String) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `LispString` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/string.rs#L34
warning: struct `LispString` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/string.rs:34:5
|
34 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
redundant closure:
crates/rune-core/src/object/string.rs#L29
warning: redundant closure
--> crates/rune-core/src/object/string.rs:29:58
|
29 | StrType::String(s) => s.chars().nth(idx).map(|c| c.into()),
| ^^^^^^^^^^^^ help: replace the closure with the method itself: `std::convert::Into::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
= note: `-W clippy::redundant-closure-for-method-calls` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::redundant_closure_for_method_calls)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/stack.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/stack.rs:83:5
|
83 | pub fn offset_end(&self, i: usize) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn offset_end(&self, i: usize) -> usize`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/hashtable.rs#L70
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/hashtable.rs:70:5
|
70 | / pub fn try_borrow_mut(
71 | | &self,
72 | | ) -> Result<RefMut<'_, HashTableView<'_, GcObj<'_>>>, BorrowMutError> {
| |_________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/hashtable.rs#L45
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/hashtable.rs#L45
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/hashtable.rs:45:5
|
45 | pub unsafe fn new(vec: HashTable) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(vec: HashTable) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L184
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:184:5
|
184 | / pub fn call<'ob>(
185 | | &self,
186 | | args: &mut Rt<Vec<GcObj<'static>>>,
187 | | env: &mut Rt<crate::env::Env>,
188 | | cx: &'ob mut Context,
189 | | ) -> Result<GcObj<'ob>> {
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L157
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:157:5
|
157 | pub fn num_of_fill_args(self, args: u16, name: &str) -> Result<u16> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L145
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:145:5
|
145 | pub fn into_arg_spec(self) -> u64 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn into_arg_spec(self) -> u64`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/func.rs#L128
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/func.rs:128:5
|
128 | pub fn from_arg_spec(spec: u64) -> Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L83
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:83:5
|
83 | pub fn consts(&self) -> &Rt<&'static LispVec> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn consts(&self) -> &Rt<&'static LispVec>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/func.rs#L79
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/func.rs:79:5
|
79 | pub fn code(&self) -> &Rt<&'static LispString> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn code(&self) -> &Rt<&'static LispString>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
struct `ByteFn` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/object/func.rs#L59
warning: struct `ByteFn` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/object/func.rs:59:5
|
59 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/func.rs#L31
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/func.rs:31:5
|
31 | pub unsafe fn new(op_codes: &LispString, consts: &LispVec, args: FnArgs, depth: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/convert.rs#L93
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/convert.rs:93:1
|
93 | / pub fn try_from_slice<'brw, 'ob, T, E>(slice: &'brw [GcObj<'ob>]) -> Result<&'brw [Gc<T>], E>
94 | | where
95 | | Gc<T>: TryFrom<GcObj<'ob>, Error = E> + 'ob,
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L28
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:28:5
|
28 | pub unsafe fn as_mut(&self) -> &MutObjCell {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/object/cell.rs#L22
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/object/cell.rs#L22
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/object/cell.rs:22:5
|
22 | pub unsafe fn new(obj: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new(obj: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/object/buffer.rs#L43
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/object/buffer.rs:43:5
|
43 | pub fn insert(&mut self, arg: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L250
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:250:5
|
250 | pub fn set_func(&self, symbol: Symbol, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L197
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:197:5
|
197 | pub fn with_capacity(cap: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_capacity(cap: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L98
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:98:5
|
98 | pub fn set_buffer(&mut self, buffer: &LispBuffer) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L80
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:80:5
|
80 | pub fn defvar(&mut self, var: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env.rs#L58
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env.rs:58:5
|
58 | pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn get_exception(&self, id: u32) -> Option<(&Rt<GcObj<'static>>, &Rt<GcObj<'static>>)>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env.rs#L30
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env.rs:30:5
|
30 | pub fn set_var(&mut self, sym: Symbol, value: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L2
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:2:1
|
2 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
|
useless lint attribute:
crates/rune-core/src/env/sym.rs#L1
warning: useless lint attribute
--> crates/rune-core/src/env/sym.rs:1:1
|
1 | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(non_snake_case)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `-W clippy::useless-attribute` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::useless_attribute)]`
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/env/symbol.rs#L285
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L285
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:285:5
|
285 | pub unsafe fn set_func(&self, func: Gc<Function>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L213
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:213:5
|
213 | pub const fn new_const(name: &'static str) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_const(name: &'static str) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L100
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:100:5
|
100 | pub fn is_special(self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_special(self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L87
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:87:5
|
87 | pub const fn new_builtin(idx: usize) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub const fn new_builtin(idx: usize) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L82
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:82:5
|
82 | pub unsafe fn from_ptr(ptr: *const SymbolCell) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/env/symbol.rs#L78
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L78
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:78:5
|
78 | pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn from_offset_ptr(ptr: *const u8) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/env/symbol.rs#L70
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/env/symbol.rs:70:5
|
70 | pub fn as_ptr(self) -> *const u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn as_ptr(self) -> *const u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
missing `#[must_use]` attribute on a method returning `Self`:
crates/rune-core/src/error.rs#L61
warning: missing `#[must_use]` attribute on a method returning `Self`
--> crates/rune-core/src/error.rs:61:5
|
61 | / pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
62 | | let display = display_slice(args);
63 | | self.backtrace.push(format!("{name} {display}"));
64 | | self
65 | | }
| |_____^
|
= help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
= note: `-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::return_self_not_must_use)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L61
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:61:5
|
61 | pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn add_trace(mut self, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L56
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:56:5
|
56 | pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_trace(error: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/error.rs#L37
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/error.rs:37:5
|
37 | pub fn new_error(error: anyhow::Error) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new_error(error: anyhow::Error) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L100
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:100:5
|
100 | pub fn set_cdr(&self, new_cdr: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons.rs#L91
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons.rs:91:5
|
91 | pub fn set_car(&self, new_car: GcObj) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
unsafe function's docs miss `# Safety` section:
crates/rune-core/src/cons.rs#L30
warning: unsafe function's docs miss `# Safety` section
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `-W clippy::missing-safety-doc` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons.rs#L30
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons.rs:30:5
|
30 | pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub unsafe fn new_unchecked(car: GcObj, cdr: GcObj) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L197
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:197:5
|
197 | pub fn as_list(self) -> Result<ElemIter<'ob>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L178
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:178:5
|
178 | pub fn conses(self) -> ConsIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn conses(self) -> ConsIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L174
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:174:5
|
174 | pub fn elements(self) -> ElemIter<'ob> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn elements(self) -> ElemIter<'ob>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L147
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:147:5
|
147 | pub fn is_empty(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn is_empty(&self) -> bool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L69
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:69:5
|
69 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
docs for function returning `Result` missing `# Errors` section:
crates/rune-core/src/cons/iter.rs#L64
warning: docs for function returning `Result` missing `# Errors` section
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
= note: `-W clippy::missing-errors-doc` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::missing_errors_doc)]`
|
struct `ElemIter` has a public `len` method, but no `is_empty` method:
crates/rune-core/src/cons/iter.rs#L64
warning: struct `ElemIter` has a public `len` method, but no `is_empty` method
--> crates/rune-core/src/cons/iter.rs:64:5
|
64 | pub fn len(&self) -> Result<usize, ConsError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
= note: `-W clippy::len-without-is-empty` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::len_without_is_empty)]`
|
this method could have a `#[must_use]` attribute:
crates/rune-core/src/cons/iter.rs#L21
warning: this method could have a `#[must_use]` attribute
--> crates/rune-core/src/cons/iter.rs:21:5
|
21 | pub fn fallible(self) -> fallible_iterator::Convert<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn fallible(self) -> fallible_iterator::Convert<Self>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: `-W clippy::must-use-candidate` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::must_use_candidate)]`
|
`crate` references the macro call's crate:
crates/rune-core/src/macros.rs#L12
warning: `crate` references the macro call's crate
--> crates/rune-core/src/macros.rs:12:41
|
12 | impl<'ob> std::convert::TryFrom<crate::object::GcObj<'ob>> for $self {
| ^^^^^ help: to reference the macro definition's crate, use: `$crate`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
= note: `-W clippy::crate-in-macro-def` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::crate_in_macro_def)]`
|