Skip to content

Add Facebook sharing button #1113

Add Facebook sharing button

Add Facebook sharing button #1113

GitHub Actions / clippy failed Jan 31, 2025 in 0s

clippy

3 errors

Details

Results

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

Versions

  • rustc 1.84.1 (e71f9a9a9 2025-01-27)
  • cargo 1.84.1 (66221abde 2024-11-19)
  • clippy 0.1.84 (e71f9a9a98 2025-01-27)

Annotations

Check failure on line 36 in /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/posts/template_post_html.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`std::option::Option<std::string::String>` doesn't implement `std::fmt::Display`

error[E0599]: `std::option::Option<std::string::String>` doesn't implement `std::fmt::Display`
  --> /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/posts/template_post_html.rs:36:20
   |
36 | post.metadata.slug.to_html(_ructe_out_.by_ref())?;
   |                    ^^^^^^^ `std::option::Option<std::string::String>` cannot be formatted with the default formatter
   |
note: trait bound `std::option::Option<std::string::String>: std::fmt::Display` was not satisfied
  --> /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/_utils.rs:87:9
   |
87 | impl<T: Display> ToHtml for T {
   |         ^^^^^^^  ------     -
   |         |
   |         unsatisfied trait bound introduced here
   = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: the method `to_html` exists on the type `std::string::String`
  --> /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/_utils.rs:12:5
   |
12 |     fn to_html(&self, out: &mut dyn Write) -> io::Result<()>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = help: items from traits can only be used if the trait is implemented and in scope
note: `templates::_utils::ToHtml` defines an item `to_html`, perhaps you need to implement it
  --> /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/_utils.rs:10:1
   |
10 | pub trait ToHtml {
   | ^^^^^^^^^^^^^^^^
help: consider using `Option::expect` to unwrap the `std::string::String` value, panicking if the value is an `Option::None`
   |
36 | post.metadata.slug.expect("REASON").to_html(_ructe_out_.by_ref())?;
   |                   +++++++++++++++++

Check failure on line 4 in /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/posts/template_post_html.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `super::super::layout_html`

error[E0432]: unresolved import `super::super::layout_html`
 --> /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/posts/template_post_html.rs:4:5
  |
4 | use super::super::layout_html;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^ no `layout_html` in `templates`

Check failure on line 4 in /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/home/template_home_html.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `super::super::layout_html`

error[E0432]: unresolved import `super::super::layout_html`
 --> /home/runner/work/rblog/rblog/target/debug/build/rblog-8018c2a1a516fa41/out/templates/home/template_home_html.rs:4:5
  |
4 | use super::super::layout_html;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^ no `layout_html` in `templates`