@@ -26,7 +26,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
26
26
println ! ( "Building screenshot URL with structured options..." ) ;
27
27
let screenshot_url =
28
28
capture. build_screenshot_url ( "https://capture.page/" , Some ( & screenshot_options) ) ?;
29
- println ! ( "Screenshot URL: {}" , screenshot_url ) ;
29
+ println ! ( "Screenshot URL: {screenshot_url}" ) ;
30
30
31
31
// Example 2: PDF with structured options
32
32
let pdf_options = PdfOptions {
@@ -42,7 +42,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
42
42
43
43
println ! ( "Building PDF URL with structured options..." ) ;
44
44
let pdf_url = capture. build_pdf_url_structured ( "https://capture.page/" , Some ( & pdf_options) ) ?;
45
- println ! ( "PDF URL: {}" , pdf_url ) ;
45
+ println ! ( "PDF URL: {pdf_url}" ) ;
46
46
47
47
// Example 3: Content with structured options
48
48
let content_options = ContentOptions {
@@ -54,7 +54,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
54
54
println ! ( "Building content URL with structured options..." ) ;
55
55
let content_url =
56
56
capture. build_content_url_structured ( "https://capture.page/" , Some ( & content_options) ) ?;
57
- println ! ( "Content URL: {}" , content_url ) ;
57
+ println ! ( "Content URL: {content_url}" ) ;
58
58
59
59
// Example 4: Using generic override mechanism
60
60
let mut additional_options = HashMap :: new ( ) ;
@@ -78,7 +78,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
78
78
println ! ( "Building screenshot URL with override options..." ) ;
79
79
let override_url =
80
80
capture. build_screenshot_url ( "https://capture.page/" , Some ( & screenshot_with_override) ) ?;
81
- println ! ( "Override URL: {}" , override_url ) ;
81
+ println ! ( "Override URL: {override_url}" ) ;
82
82
83
83
// Example 5: Metadata with generic options only
84
84
let mut metadata_additional = HashMap :: new ( ) ;
@@ -94,7 +94,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
94
94
println ! ( "Building metadata URL with generic options..." ) ;
95
95
let metadata_url =
96
96
capture. build_metadata_url_structured ( "https://capture.page/" , Some ( & metadata_options) ) ?;
97
- println ! ( "Metadata URL: {}" , metadata_url ) ;
97
+ println ! ( "Metadata URL: {metadata_url}" ) ;
98
98
99
99
// Example 6: Fetch screenshot with structured options
100
100
println ! ( "Fetching screenshot with structured options..." ) ;
0 commit comments